I'm wondering of it's possible to create a module structure in a module (or something that appears like that)
Currently I use an admin module, using urls like this:
public/admin/index/index
with a folder structure like this:
applications
-- modules
---- admin
------ controllers
------ views [and so on]
I would like to use these kind of urls:
public/admin/news/index/index
public/admin/gallery/index/index
Where news and gallery are modules
The folder structure would look like this
applications
-- modules
---- admin
------ controllers
------ views
-------- scripts
---------- modules
------------ news
-------------- controllers
-------------- views [and so on]
------------ gallery
-------------- controllers
-------------- views [and so on]
Is this possible? I tried adding another module in my bootstrap:
$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Module',
'basePath' => APPLICATION_PATH . '/modules/admin/views/scripts/modules'));
But that didn't work out. I could create news, gallery and such modules and load them in my admin layout. Everything would be in in the same style and menu as the rest of the admin but I would rather see it my way (if it's possible)
If I want something completely out of the question or have any tips, ideas, please let me know.