leo80
(Tsantarll)
1
hello,
When this code runs:
Yii::app()->clientScript->registerCoreScript("jquery")
i see this message:
Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/project/assets/f1f65891/jquery.js
What’s the problem?
Why doesn’t Yii generate the requested javascript file into the assets folder?
(the assets folder exists, but it isn’t properly populated)
Keith
(Kburton)
2
Make sure the assets folder is writeable. Set the permissions to 0777 to test it.
leo80
(Tsantarll)
3
Thank you for the reply.
I’ve set the permissions to 0777. Nothing happened.
I also deleted all the files inside the "assets" folder.
Yii generates succefully them (for example the "f1f65891" folder), except the "assets/f1f65891/jquery.js".
Why is this happening?
Keith
(Kburton)
4
Have you customised the clientScript component in any way in your application config?
leo80
(Tsantarll)
5
I had an older version of Yii.
I replaced it with 1.1.13 and it worked.