Does zend allows to define a directory that it will try to autoload a class from it when ever a new instance of that class is initiated? I mean if i create a class MasterController
Then i do MasterController::Something() i assume zend will not find it unless it's located in the library of the zend core files?! correct me if i am wrong. In Yii framework you could set directories that the autoload will look for the classes if it didn't find them in the default autoload directory. So i could just do
$config['autoload_directories'] = array(
'application.models.*',
'application.widget.*',
'application.components.*',
)
then if i have the file MasterController.php in the application/components/ it will successfully load that class since it's located in one of the autoload directories. So my questions is , Does ZF has something like this?
Hope that make sense. Thanks.
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Then i do MasterController::Something() i assume zend will not find it unless it's located in the library of the zend core files?! correct me if i am wrong. In Yii framework you could set directories that the autoload will look for the classes if it didn't find them in the default autoload directory. So i could just do
$config['autoload_directories'] = array(
'application.models.*',
'application.widget.*',
'application.components.*',
)
then if i have the file MasterController.php in the application/components/ it will successfully load that class since it's located in one of the autoload directories. So my questions is , Does ZF has something like this?
Hope that make sense. Thanks.
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
没有评论:
发表评论