Monday, May 31, 2010

Import Vendor inside Shell class

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: