I want to be able to add a meta tag from a view (or, if possible, a controller) in CakePHP
I have a page like /mycontroller/myview , but when I access it, filters like:
/mycontroller/myview/page:2/max_price:500
Then I want to add meta no follow tags.
There is a meta method in the HtmlHelper class.
When I call it this way:
$this->Html->meta('keywords', 'test test test', array('inline'=>false));
It creates a meta tag similar to this:
<meta name="keywords" content="test test test" />
However, when I call it this way:
$this->Html->meta('robots', 'noindex, nofollow', array('inline'=>false));
Naturally, I would expect and want to create this:
<meta name="robots" content="noindex, nofollow" />
Instead, I get this:
<link href="http://www.example.com/mycontroller/noindex, nofollow" type="application/rss+xml" rel="alternate" title="robots" />
What am I doing wrong?