Wednesday, March 21, 2012

Re: AppImport from Lib folder in 2.1

I just see no point in creating a class from a few utility functions.

Thanks anyway, App:Import from vendors works fine.


On Wednesday, March 21, 2012 11:27:06 AM UTC+9, José Lorenzo wrote:
You can use require(), App::import() and App::uses() are meant for loading classes not function files. CakePHP does not encourage procedural style programming, but you can still use the php functions to load files.


--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: