I'll describe what I did.
I created a cms-system which basically consists of a lot of plugins.
All plugins just have some models and some element-views. For example,
I have a plugin which basically enables you to put comments on a page.
Another plugin enables you to put content on a page. Another plugin is
a poll, another is a rating-box, etc etc....
With that cms, I can create a whole new site with just a new database
and a new webroot to put the css-files and the images in.
So I had to alter my folders-tree in app. Now I don't have /app/
webroot/
I have /app/webroots/localhost/ and /app/webroots/example.com/ etc..
I changed some files like index.php in the webroots and the htaccess-
files etc so everything works, and it does work.
Now, when I use the html-helper or the javascript-helper to create a
link to my css file or my js-file it does create the right link.
However, I want some javascript-files to be in /app/vendors/javascript
instead of /app/webroots/localhost/js/
But for some reason that doesn't work.
When I do this:
echo $javascript->link('jquery');
it creates a link to /app/webroots/localhost/js/jquery.js but the file
isn't there. Now I think that at that moment vendors.php (which is in
that folder) should step in and get the file from /app/vendors/
javascript/, am I right? Well, it doesn't...
And yes, I have altered vendors.php as well so the paths match and it
should work...
What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---