Tuesday, January 27, 2009

Re: Calling $html->css() from inside an element

Try it from a layout.

...but your question is about calling it from inside an element :-S

... or do you mean an element that's linked from a layout and not a
view?

On Jan 26, 2:19 pm, Gonzalo Servat <gser...@gmail.com> wrote:
> On Mon, Jan 26, 2009 at 12:17 PM, RichardAtHome <richardath...@gmail.com>wrote:
>
>
>
> > Sorry AD7six, just tried it in an element and the code IS injected
> > into the header:
>
> > view.ctp
> > <?php echo $this->element("test") ?>
>
> > elements\test.ctp
> > <?php echo $html->css("test", array(), null, false) ?>
>
> > I'm using the latest stable build of Cake
>
> Try it from a layout.
>
>  - Gonzalo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: