Hello all,
I am having trouble using App::import with Vendor files within a plugin I
am developing.
My plugin is *ResourcesController* and I am trying to import a file in *
Vendor/LessPHP* called *lessc.inc.php*.
I have tried:
App::import('ResourcesController.Vendor', 'LessPHP', array('file' =>
'LessPHP' . DS . 'lessc.inc.php'));
and I found that it works when I use the native:
require(ROOT.DS.'app'.DS.'Plugin'.DS.'ResourcesController'.DS.'Vendor'.DS.'LessPHP'.DS.'lessc.inc.php');
So I am a bit confused as to what I am doing wrong with App::import.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php