0
votes

I have developed a small application and now I want to create and administrator module. In the future I would like to add different modules but for now i would like to treat this admin as a module and to access it like http://host/module/controller

I have read about zend_autoloader and wrote this in my Bootstrap.php

protected function _initAutoload() {
        $autoloader = new Zend_Application_Module_Autoloader(array(
            'namespace' => 'Admin',
            'basePath' => '/modules/admin'
        ));

I have created a default IndexController with the default index view file. When I try to access http://host/admin or http://host/admin/index i get an application error and of course the view is not loaded.

What am i doing wrong?

1
An error occurred Page not found - user253530
Just by searching Stack overflow for module loading issues, you get 200+ results. This is obviously a duplicate question. ZF, just like any framework of any language, has a relatively steep learning curve. Do more research and studying before asking questions. - Fatmuemoo

1 Answers