> Think about when in terms of processing order $scripts_for_layout is
> calculated.
You're absolutely right about the order of processing. It seems
$scripts_for_layout is calculated from the view->__scripts[] but only
for the actual view template (the one that corresponds to controller/
action) n
On Oct 7, 10:02 pm, Marc Campeau <[EMAIL PROTECTED]> wrote:
> Thanks for clarifying this.
>
> On a side note, there's something fishy about the fact that the
> following doesn't yield what I expected:
>
> In the head tag section of default.ctp:
> css(array('general'), null, null, false);
Thanks for clarifying this.
On a side note, there's something fishy about the fact that the
following doesn't yield what I expected:
In the head tag section of default.ctp:
css(array('general'), null, null, false); ?>
The output doesn't contain the Link tag.
Could it be becaus
On Oct 7, 7:57 pm, Marc Campeau <[EMAIL PROTECTED]> wrote:
> Me again,
>
> so I think I figured some of it out.
>
> It seems like the call to render the default.ctp doesn't defer the
> output of the header until the end of all other element rendering.
> Hence, if echo $scripts_for_layout is proc
Me again,
so I think I figured some of it out.
It seems like the call to render the default.ctp doesn't defer the
output of the header until the end of all other element rendering.
Hence, if echo $scripts_for_layout is processed before in-page element
(inside the page's body), which are output u
Hi all,
still haven't found a solution for this. Does anyone know whom I might
contact to know if this is a bug or expected behavior, ie using $html-
>css() within elements doesn't work the same as in views? Should I
submit this to the bug tracker?
Thanks for helping a new baker.
Marc
On Oct 7
Hi Michael,
thanks for looking at this problem. I know it works when calling $html-
>css() from the view (see side notes in original post) but my problem
is it doesn't when calling $html->css() or $javascript->link from an
element (/views/elements/menu.ctp for instance).
Thanks,
Marc
On Oct 6,
Marc,
I'm using RC3.
In my view I'm calling $html->css() with array() as the third
parameter instead of null. The wrote:
> Thanks for taking the time. t least now I know I'm not alone! ;-)
>
> On Oct 6, 3:38 pm, hydra12 <[EMAIL PROTECTED]> wrote:
>
> > Oops! You're right. Sorry. I can't get
Thanks for your input.
I beg to differ though, the manual says:
http://manual.cakephp.org/view/96/Layouts
When using $html->css() or $javascript->link() in view files, specify
'false' for the 'in-line' argument to place the html source in
$scripts_for_layout. (See API for more details on usage).
Thanks for taking the time. t least now I know I'm not alone! ;-)
On Oct 6, 3:38 pm, hydra12 <[EMAIL PROTECTED]> wrote:
> Oops! You're right. Sorry. I can't get it to work either.
>
> On Oct 6, 2:00 pm, "Marc Campeau" <[EMAIL PROTECTED]> wrote:
>
> > Thanks for your input.
>
> > I beg to diffe
Oops! You're right. Sorry. I can't get it to work either.
On Oct 6, 2:00 pm, "Marc Campeau" <[EMAIL PROTECTED]> wrote:
> Thanks for your input.
>
> I beg to differ though, the manual says:
>
> http://manual.cakephp.org/view/96/Layouts
> When using $html->css() or $javascript->link() in view fi
If you look at the api, you'll see that $html->css creates a link to a
pre-existing style sheet in webroot/css. $scripts_for_layout is for
javascript using the javascript helper.
On Oct 6, 12:02 pm, Marc Campeau <[EMAIL PROTECTED]> wrote:
> Yeah sorry, I thought I should have put that in the mes
Just to help others who might help you, are you running the latest version
of Cake?
On Mon, Oct 6, 2008 at 10:34 AM, Marc Campeau <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I'm having trouble with the HtmlHelper and the $scripts_for layout.
> Basically, I use the helper to add CSS inline ($h
Yeah sorry, I thought I should have put that in the message.
I'm running off the latest code from the SVN Repository, checked it
out last week, Friday if I remember well.
Thanks for the heads up,
Marc
On Oct 6, 12:52 pm, "Lamonte(Scheols/Demonic)" <[EMAIL PROTECTED]>
wrote:
> Just to help othe
Hi everyone,
I'm having trouble with the HtmlHelper and the $scripts_for layout.
Basically, I use the helper to add CSS inline ($html-
>css(array('someCss'), null, null, false);) from within the different
elements (/views/elements/) that the view needs to render. I would
have expected these CSS t
15 matches
Mail list logo