Somehow App::import('Vendor', 'MyClass/MyClass'); didn't work. What
does work is : App::import('Vendor', 'MyClass', array('file' =>
'MyClass'.DS.'MyClass.php'));
On May 31, 10:33 am, Edwin <edwink...@gmail.com> wrote:
> Hi all,
>
> I'm having trouble importing a vendor class inside a Shell class. I've
> tried to use App::import('Vendor', 'MyClass/MyClass'); but it doesn't
> seem to work.
>
> If i'm trying to create a new instance of the imported class I get the
> following error:
>
> "Fatal error: Class 'MyClass' not found"
>
> Can anybody point me in the right direction what I'm doing wrong?
>
> Thanks!
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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