<?php echo $this->Html->meta('description', 'foo bar', array('inline'
=> false)); ?>

this works? I might have mixed up my version numbers

On Nov 9, 2:14 pm, Media Affect <[email protected]> wrote:
> I am using 1.2
>
> On Nov 9, 2:03 pm, cricket <[email protected]> wrote:
>
> > On Tue, Nov 9, 2010 at 1:53 PM, cricket <[email protected]> wrote:
> > > 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));
>
> > I just noticed the 'echo', which I've removed. No change.
>
> > I can't see anything in the source that looks wrong. And, without the
> > echo in my code, even if $inline was somehow found to be true in the
> > helper's method, it still shouldn't appear where it is because the
> > method returns $out instead of echoing it. If I'm also not echoing it,
> > it shouldn't be in the page at all.

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

Reply via email to