On Jun 16, 5:43 pm, 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>
It looks like you're missing the webroot/js directory. The URL is correctly created but Cake, not finding a js dir, and not seeing a route beginning with "/js/", correctly expects a controller by that name. Maybe your .htaccess file is missing or mod_rewrite is borked? 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
