开发者

Can jQuery plugins be used in cakePHP?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜