Hi CraZyLeGs

The HeadHelper /functionality/ is now in the core - not the code
itself.

Put: $javascript->link(array('jquery.js', app.js), false); in your
view.ctp and e($scripts_for_layout); in the head section of your
layout.ctp and you get the same functionality as HeadHelper. (Note the
second arg 'false' on $javascript->link).

~GreyCells


On Feb 21, 9:51 am, "CraZyLeGs" <[EMAIL PROTECTED]> wrote:
> The head helper isn't part of the  core.
> it was written by rossoft and it's available in his blog
>
> On Feb 20, 9:33 am, "GreyCells" <[EMAIL PROTECTED]> wrote:
>
> > If you're using 1.2, then take a look here:
>
> >http://cake.insertdesignhere.com/posts/view/17
>
> > The HeadHelper functionality is implemented in the core.
>
> > ~GreyCells
>
> > On Feb 20, 8:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > I want to include javascript file in layout.It is possible? if it is,
> > > how to include javascript file.
>
> > > If i include like this
>
> > > app/views/layouts/index.thtml
>
> > > <head>
> > > <title>Untitled-1</title>
> > > <meta http-equiv="Content-Type" content="text/html;
> > > charset=iso-8859-1">
> > > </head>
>
> > > <script src='../js/shal.js' language='javascript'></script>
>
> > > it is not working.


--~--~---------~--~----~------------~-------~--~----~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to