you could set up an apache alias to your app/vendors directory at mysite.com/vendors and link to css like this echo $html->css('/vendors/mystyle.css', NULL, NULL, false);
same would work for javascript On Jul 30, 4:24 am, Christian <christian.lusz...@gmail.com> wrote: > Okay. Understood. Thanks! > > It works like all of you suggested to put all files in one directory > under webroot (e.g. webroot/js/syntaxhighlighter/) and then use > > $html->css('../js/syntaxhighlighter/styles/shCore', null, null, > false); > $javascript->link('syntaxhighlighter/scripts/shCore', false); > > I started and hoped that I can reuse such complete packages better by > locating it in vendors ... but that seems to be impossible. What if I > have a package which consists of a PHP class, JS and CSS plus images. > Do I have to move JS, CSS and images to webroot and keep the php class > in a vendor directory? According to your answers I assume yes ... not > really perfect in my eyes .. but I understand that it can get very > complex if vendors is not available for the webserver to show as > webroot is the only public area ... > > Thank you so far. > Christian --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---