I still just use import. App::import('Vendor', 'PluginName.ClassName');
Also, shouldn't the uses be: App::uses('ClassName', 'Plugin/PluginName/Vendor'); ? On Nov 28, 12:55 am, p r <perab...@googlemail.com> wrote: > have you tried this? In this case the classfile will not be found from > a subfolder. You can see that with App::objects('PluginName.Vendor'). > Is there a way to extend the plugin vendor pathes with App::build? So > i add all my subfolders and your way should be fine. Currently i go > this way... > > App::build(array('Vendor' => array(APP . 'Plugin' . DS . > 'PluginName' . DS . 'Vendor' . DS . 'SubFolder'. DS))); > App::uses('ClassNameFromSubFolder', 'Vendor'); > > On 27 Nov., 20:41, Sam Sherlock <sam.sherl...@gmail.com> wrote: > > > > > > > > > App::uses('ClassName', 'PluginName.Vendor'); > > > App::build will let you add additional paths for plugins etc. > > > You don't need to use app build to be able to use classes from plugins. > > > - S > > On 27 Nov 2011 17:55, "p r" <perab...@googlemail.com> wrote: > > > > Hello, > > > > it would be a pleasure if somebody could help me. I try to load files > > > from Plugin subfolder. How should i use App::build? One solution is to > > > add the plugins vendor subfolder to the vendors paths. Now the classes > > > are available per App::uses. > > > But so i have to include every external library folder i want to use > > > in the plugin. Is there a way to work with plugins vendor folder in > > > App::uses, or is it possible to specify this on App:build? > > > > greetings > > > pr > > > > -- > > > Our newest site for the community: CakePHP Video Tutorials > > >http://tv.cakephp.org > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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