Adding robots meta-tag to a CakePHP view
You should check the original there. And here is a carbon copy:
Code:
<?php $html->meta('robots', null, array('name' => 'robots', 'content' => 'noindex') ,false); ?>
Add this html helper in its exact form in your view file.
Output:
<meta name="robots" content="noindex"/>
And it will appear within the <head> </head>
And all the well behaved robots (Sure! Google is so) will stop indexing those pages.
Thanks Miquel. You are a genius!