Set Meta Title (Page Title) in CakePHP 1.2/1.3

cakephp-freelancer-developer

Hello Friends,

As i mention in my previous posts, CakePHP 1.3 come up with lots of new syntax changes. I was looking for a Meta Title SEO tag for each page. I need to set this Meta Title (Page Title) for each page. You must be aware that Page Title can be set in method which we write in respective controller. Look at below syntax changes in CakePHP 1.2 and CakePHP 1.3 for setting Page Title.

CakePHP 1.2
$this->pageTitle = "Page Title Value";

CakePHP 1.3
$this->set("title_for_layout","Page Title Value");

If you find any problem in this than let me know by comment.

About Rakshit Patel
I am PHP Freelancer, Rakshit Patel AKA WordPress Freelancer working as PHP Programmer India. I am here to share all my developing knowledge, quick coding techniques, quick solutions to save your time and help you guys for any issue or bug fixing. If you have any PHP, WordPress, Magento related work, please contact me. I am interested for the work.

6 Comments on Set Meta Title (Page Title) in CakePHP 1.2/1.3

  • GMAmin2010
    May 11, 2010 at 9:03 am

    Pls tell me where to set page title. I am new to CaKePHP. visit my site and tell in which file I have to open and edit in my website.

  • GMAmin2010
    May 11, 2010 at 2:33 pm

    Pls tell me where to set page title. I am new to CaKePHP. visit my site and tell in which file I have to open and edit in my website.

  • Rakshit Patel
    May 11, 2010 at 12:11 pm

    @GMAmin2010 , you can set this meta title for each page in particular method in your controller. Whatever you set in controller, you can show it in page layout.

  • Rakshit Patel
    May 11, 2010 at 5:41 pm

    @GMAmin2010 , you can set this meta title for each page in particular method in your controller. Whatever you set in controller, you can show it in page layout.

  • fairuz
    July 7, 2010 at 3:40 am

    in controller using like dat
    pageTitle = ‘Add New Record’;
    /*
    some process to do;
    */
    }

    ?>

  • fairuz
    July 7, 2010 at 9:10 am

    in controller using like dat
    pageTitle = ‘Add New Record’;
    /*
    some process to do;
    */
    }

    ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

Sponsors

Sponsors

Recommended

DHgate Computers
DHgate.com - Computers, Cell Phones & more
  • We find everbuying built in php and use css to control the style.

About Author

PHP Freelancer

PHP Freelancer I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I am here to share all my developing knowledge with you people. For Hire PHP Developer India, contact me.
Follow on twitter: @raxit4u2

Get Free Programming Tutorials:

Become a Fan

Popular Topics

Recent Posts

Most Popular

Recent Comments

Get a Free Quote
$
$
$
Security Question: 3 + 8 = ?
$
 
Listing all pages