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.

On Monday, March 19, 2012 8:56:58 PM UTC-4:30, Sergei wrote:
>
> Hello,
>
> So I've put my func.php to Lib dir and loaded it with 
> App::import('Lib','func').
>
> Everything worked on local Windows server, until I uploaded it to Linux 
> production server. Then it said: requested file couldnt be found or 
> something.
>
> I had to move these files to Vendor and load them using 
> App::import('Vendor','func') 
> on the server. This way it worked.
>
> Anyone knows why?
>
>
> Thanks,
> Sergei.
>

-- 
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

Reply via email to