开发者

Can jQuery plugins be used in cakePHP?

开发者 https://www.devze.com 2023-01-19 22:07 出处:网络
Hello I am not able to understand how to use jQuery plug-ins in cakePHP. I have one plug-in by the name \"countdown\". It has 2 js files, one html, one css file and a few images. If I were using regul

Hello I am not able to understand how to use jQuery plug-ins in cakePHP. I have one plug-in by the name "countdown". It has 2 js files, one html, one css file and a few images. If I were using regular javascript file, I'd have to give a name to my file and call it in the view or in default.ctp using the "$html->script('path/to/file')" function. But now I have other files too, and if I put them in separate folders complying with the cake structure. But then, I would also have to edit the files with changed paths.

Is there an easy way than putting th开发者_运维问答em in separate folders?


I would simply put them all in your (assumed) app/webroot/js/jquery/plugins/<plugin-name>/.

I see the whole package as something that belongs to js folder, not the individual files.

0

精彩评论

暂无评论...
验证码 换一张
取 消