Js URL

2009-08-03 Thread RhythmicDevil

Hi,
I am using CakePHP for my application. I am in the process of adding
jQgrid and I am having a problem loading the language file. CakePHP
complains that there is no controller for it?! I have no idea why
though. I have verified that the files are all in the correct place. I
have moved the language file to different locations but it made no
difference. I tried loading by writing out the script tag by hand,
still no difference.

This is from my default layout:

?php
echo $html-css('default');
echo $html-css('custom-theme/jquery-ui-1.7.2.custom');
echo $javascript-link('jquery-1.3.2.min.js');
echo $javascript-link('jquery-ui-1.7.2.custom.min.js');
echo $javascript-link('jquery.jqGrid.min.js');
echo $javascript-link('i18n/grid.local-en.js');
echo $javascript-link('jquery.json-1.3.min.js');
echo $javascript-link('app.js');
?

This is what Firebug shows me:

script src=/js/i18n/grid.local-en.js type=text/javascript
1!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
2 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
3html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
4head
5titleMissing Controller/title

$___dataForView = array(
13 controller = JsController,
14 controllerName = Js,
15 title_for_layout = Missing Controller,
16 content_for_layout = lt;h2gt;Missing Controllerlt;/h2gt;

any help would be appreciated.

thanks.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Js URL

2009-08-03 Thread Sam Sherlock
the default css does not have have a suffix nor should the js
   echo $html-css('default');
   echo $html-css('custom-theme/jquery-ui-1.7.2.custom');
   echo $javascript-link('jquery-1.3.2.min.js'); - S

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---