PLEASE can somebody help me and explain (in simple terms) how to use
Jquery with cakePHP....the cake tutorials just seem to 'brush over'
this topic in the manual, so I am hoping somebody will be kind enough
to explain it in a little more detail on here?!?!?
I understand you download jquery and add it to the webroot/js folder.
You then need to call the jquery file into the layout like so..<?php
echo $this->Html->script('jquery-1.6.1'); ?>
...but then what do you do?? I think I need to add it to the $helpers
in my controller ?? var $helpers = array('Js' =>
array('Jquery')); ? or do i? does cakephp use Jquery as default??
Also then, how do I call my JQuery script in cake?? for example, I am
testing with something simple like
'$("table.tiger-stripe tr:even").addClass("oddrow") - this is just a
test to see if it is working...but I cannot get it to work??
do I use <?php echo $javascript->codeBlock('$("table.tiger-stripe
tr:even").addClass("oddrow");'); ?>
..?? if so i isnt working for me.
I really hope somebody can help me with this as after much frustration
i am starting to get to grips with cake, but have now stumbled across
this problem and cannot find much help...or the help out there is out
of date.
PLEASE HELP :)
thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php