Yes, its included in header.
I wrote in my header of layout
<?php echo $this->Html->script('jquery-1.4.2.min'); ?>
in controller
var $helpers = array('Js' => array('Jquery'));
in layout before </body>
<?php echo $this->Js->writeBuffer(); ?>
And saw in firebug in header
<script src="/test/js/jquery-1.4.2.min.js" type="text/javascript"></script>
than wrote in view
$this->Js->get("#element");
$this->Js->event('click',$this->Js->alert('hey you!'));
than i trying to click on my
<p id="element">First Paragraph</p>
but its not working. :(
Thanks for answers guys! But probel still actualy
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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