Posted By

batfan on 04/06/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kmcbride


CakePHP Meta


 / Published in: PHP
 

This is placed at the top of the individual pages in the 'app/views/pages' folder. Insert 'Part 2' between the title tags on the main layout.

  1. <?php
  2. $this->pageTitle = 'Our Page Title';
  3.  
  4. echo $html->meta('description', 'This is a description.', array('type' => 'keywords','inline'), false);
  5. echo $html->meta('keywords', 'key1, key2, key3', array('type' => 'description'), false);
  6. ?>
  7.  
  8.  
  9. //Part 2 - The title variable
  10.  
  11. <?php echo $title_for_layout?>

Report this snippet  

You need to login to post a comment.