On Tue, Nov 9, 2010 at 1:15 PM, Media Affect <[email protected]> wrote:
> for some reason my meta tags that I have placed within my various page
> views are always running inline(body) instead of being place in the
> <head> of the document.
>
> in my default layout within the head I have:
> <?php echo $scripts_for_layout; ?>
>
> in my various pages I've included:
> <?php
> echo $html->meta('keywords', 'keywords for the page goes here one two
> three', array('type' => 'keywords'), false);
> echo $html->meta('description', 'The description of the page goes
> here, cakephp is cool', array('type' => 'description'), false);
> ?>
>
> The "false" variable should make the items go into the head where
> scripts for layout are correct? What am I doing wrong here?
Are you using 1.3.x or 1.2.x?
For the former, it should be:
echo $this->Html->meta('description', 'foo bar', array('inline' => false));
However, (and thanks for reminding me), that's not working for me,
either. I'd put that issue aside but then forgot about it. I've also
tried the 1.2.x syntax. No dice.
Using 1.3.5
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en