Sunday, May 29, 2011

Set Meta Tags (SEO Tags) in CakePHP


Hello Friends,
In my previous post, i show you the way how to set Page Title Tag in CakePHP. But setting Meta keywords and Meta Description is not the same way as Meta Title. .Also Meta Keyword and Meta Description is important part of Search Engine Optimization. Refer to below syntax to set Meta tags in CakePHP.
<?php
echo $html->meta(‘keywords’,'enter any meta keyword here’);
?>
//Output <meta name=”keywords” content=”enter any meta keyword here”/>
<?php
echo $html->meta(‘description’,'enter any meta description here’);
?>
//Output <meta name=”description” content=”enter any meta description here”/>
If you find any problem in this than let me know by comment.


1 comment:

  1. Thanks for share this fantastic blog i like your work out i hope you will give us best knowledge in future thanks.Web Designing Companies Bangalore | Bangalore Web Design Companies

    ReplyDelete