Re: App::import() in 2.x
App::uses('FileUploadSettings', 'FileUpload.Config'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/28 lowpass zijn.digi...@gmail.com App::import('FileUploadSettings', 'FileUpload.Config'); -- 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
Re: App::import() in 2.x
On Tue, Feb 28, 2012 at 5:15 PM, Tilen Majerle tilen.maje...@gmail.com wrote: App::uses('FileUploadSettings', 'FileUpload.Config'); Oh, I'm a dolt. I was forgetting that it's not a configuration file, but a class. But it still doesn't work. I get class not found on the line with: $FileUploadSettings = new FileUploadSettings; -- 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
Re: App::import() in 2.x
I find it odd that Nick used a class for this in the first place, as it only has a single array of options. It's loaded in both the component and behavior. I think it would be simpler to just put all of this in the plugin's bootstrap so I'll try rewriting it like that. -- 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