try with $Js

On Tue, Dec 22, 2009 at 11:41 AM, camillemoussette
<camillemousse...@yahoo.com> wrote:
> Hello,
>
> I'm trying to use the new JsHelper in 1.3 but I'm hitting a (stupid)
> wall. Whenever I follow the code from the documentation or the
> examples available online, I always get this error
>
> Notice (8): Undefined variable: js [APP/views/layouts/default.ctp,
> line 106]
>
> It seems that the JsHelper is not loading properly and the $js object
> is not assigned. Can you help? It must be super simple. I get the
> proper javascript output in the head and all.
>
> I have in my app_controller.php
> var $helpers = array('Js' => array('Jquery'));
>
> and
>
> my in my view, just before the <body> tag
> <?php echo $js->writeBuffer(); ?>
>
> PS. I'm following Mark's tutorial at
> http://mark-story.com/posts/view/creating-simple-ajax-pagination-with-cakephp-1-3-and-mootools
>
> Thanks
>
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Stefano Salvatori M.
http://stefano.salvatori.cl/

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to