Hello
Try This

*<?php
e($javascript->link(array('js_file_name_without_extension'),false));?>

and put js file in app/webroot/js/

and add this line in controller

var $helpers = array('Html', 'Form','Javascript','Session');

Best Luck

Bye Bye
*

On Thu, Jun 17, 2010 at 3:13 AM, Joakim <[email protected]> wrote:

> Hi,
>
> I am struggeling with including the prototype js library.
>
> When i do this in my view add.ctp:
> <?php echo $javascript->link('prototype'); ?>
> <?php echo $javascript->link('scriptaculous'); ?>
>
> I get this error returned in the js files:
> Missing Controller
>        <em>JsController</em> could not be found.</p>
>        Create the class <em>JsController</em> below in file:
> app\controllers
> \js_controller.php</p>
>
> class JsController extends AppController {
>
>        var $name = 'Js';
> }
> ...
>
> Anyone know how to solve this?
>
> Help is appriciated!
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Dilip Godhani
Jr Software Developer, Entourage Solutions
e-mail: [email protected]
          [email protected]
Web.: www.entouragesolutions.com
m. 9913822582

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

Reply via email to