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
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
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
titleUntitled-1/title
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1
/head
script src='../js/shal.js'
On Feb 20, 9: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
titleUntitled-1/title
meta http-equiv=Content-Type
You put your js files in a directory js inside the webroot directory
Then you have helpers to add.
In the controller, you include
var $helpers = array('html', 'javascript');
and in your layout, you put this for example :
echo $html-charsetTag('UTF-8');
$head-js('prototype');
On 2/20/07, Steniskis [EMAIL PROTECTED] wrote:
You put your js files in a directory js inside the webroot directory
Then you have helpers to add.
In the controller, you include
var $helpers = array('html', 'javascript');
var $helpers = array('html', 'javascript','head','util');
you need
Don't forget the helper head.
Sorry
Steniskis
--~--~-~--~~~---~--~~
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
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,