[CakePHP] How To Set Meta Keywords And Description in CakePHP

Hello Friends, Yesterday I was working on CakePHP project and at that time I was trying to put meta tags for pages. We can put keywords and description like we put in HTML, but CakePHP providing html helper by which we can generate Keywords and Description. CakePHP have html helper for all input tags and other HTML tags, So it is good that if we use html helper for meta tags.

echo $html->meta('keywords', 'Keyword come here', array('type' => 'keywords', 'inline' => false));

echo $html->meta('description', 'Description come here', array('type' => 'description'), true);

you can specify whether or not you’d like this tag to appear inline or in the head tag by setting the ‘inline’ key in the $attributes parameter to false, ie – array(‘inline’ => false).