I am struggling a little bit with the vendors concept in cakePHP
1.2.3. I understood that App::import is for importing classes from
Vendors directories. But that is not what I need at this moment. After
some trying I found out that I can use the following in views which
works fine:
$javascript->link('/vendors/js/script/script')
$html->css('/vendors/css/script/script);
This includes correctly from two directories
/vendors/js/script/script.js
/vendors/css/script/script.css
But what I really want is the following: a script package (example
syntaxhighlighter) consists of a directory with js and css subfolders
itself most time. And I like to keep its filing. Example:
/vendors/myScriptPackage/js/script.js
/vendors/myScriptPackage/css/script.css
/vendors/myScriptPackage/images/...
I tried to do $html->css('/vendors/myScriptPackage/css/script) or
similar. In all other cases cakePHP shows me meaningful links in the
HTML sources but the returned data tells me
VendorsController could not be found.
How can I integrate complete packages without breaking their defined
folder structure and moving the parts in the /vendors/(js|css|..)
folders???
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment