Re: including an element in the head depending on which view I'm in

2006-06-29 Thread brandags
I don't know if this is the best solution, but I created a variable called addHead, which I create in my view (or maybe I created it in my app controller...? can't remember..), then use it in the layout. Like so: index.thtml: ?php $this-addHead .= 'This will go in the head section';?

Re: including an element in the head depending on which view I'm in

2006-06-29 Thread guillaume bordas
While you're in the snippet section, don't forget to grab the Util Helper, Head helper make use of it;)Head helper manual by example: http://rossoft.wordpress.com/2006/03/28/register-head-tags-from-helpers-2/Third comment, important one (rossoft, maybe it should be on the top of the article) :

Re: including an element in the head depending on which view I'm in

2006-06-29 Thread RosSoft
Thanks to all for using it :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: including an element in the head depending on which view I'm in

2006-06-29 Thread RosSoft
I talked to them and it's possible to see at core --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send