php - RegisterNamespace in Zend Framework 1.12 -


i've deleted every zend framework class in folder "library/zend", used 1.7 version , wanted upgrade 1.12. after deletion i've uploaded zend framework 1.12 classes in "library/zend".

i'm facing issue in loading classes. in "public/index.php" used registerautoload(). depricated changed this:

require_once 'zend/loader/autoloader.php'; $loader = zend_loader_autoloader::getinstance(); 

then, each class use in controller have manually add this:

$loader->registernamespace('paths'); $loader->registernamespace('certificate'); $loader->registernamespace('zim_properties'); $loader->registernamespace('zim_controller_dispatcher'); $loader->registernamespace('controller_plugin_actionsetup'); $loader->registernamespace('controller_plugin_history'); $loader->registernamespace('zim_model'); $loader->registernamespace('zim_controller_action'); $loader->registernamespace('controller_proposalinvoice'); $loader->registernamespace('stats'); $loader->registernamespace('controller_articleservice'); 

if remove registernamespace fatal error: class 'controller_articleservice' not found in /home/juliaxd8/domains/jmediatechnology.eu/public_html/factuurtogo2/application/controllers/articlecontroller.php on line 3

because of manually registration forgot something/make typo. can auto load classes?

i have function in bootstrap.php file in 1 of projects, think trick:

    protected function _initautoload()     {          $modelloader = new zend_application_module_autoloader(             array('namespace' => '',                 'basepath' => application_path . '/modules/default'));         return $modelloader;     } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -