|
|||
|
hi guys,
here is the way I handle this issue : 1) add the models foldes to include path : PHP Code:
a] under windows PHP Code:
b] under GNU/Linux You may paid attention to the {$classname} instead of {$className}? If yes, you already understood why it is necessary to create a home made autoloader function for Linux : spl_autoload() lowercase the class name when it looks for the source file. So, when there is no problem with Windows (whose filesystem is case insensitive), using this trick under Linux would lead you to break the file naming convention of ZF. To avoid this horrible crime , just add this code somewhere in/from your bootstrap :PHP Code:
Last edited by gauthier : 09-05-2008 at 03:30 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|