![]() |
Zend Framework - questions questions
I'm planing to rewrite my CMS to fully use Zend Framework.
For now I'm using my own written UserManagment system. The problem is it is pretty modular, it comes in 3 parts - the core, the user system, the modules. The main problem is - how do I write modules in Zend Framework and have a class that loads them. Much help would be appreciated! :-D Can I write modules to be in seperate controller directory, eg. I have Code:
root/I'm here a noob, and want go advanced in asecond. lol :D |
It pretty much depends on how you have implemented your modules. Zend Framework allows for a modular structure such as:
Code:
/applicationYou could then go to: Code:
http://www.yoursite.com/gallery/image/viewCode:
Module: galleryIf so, that's no problem with the Zend Framewok. You would create your modules as normal controller/action classes then use the various Helpers that the Zend Framework provides such as the Zend_View Action helper. This allows you to call a specific action from your View and then use the results. The View Action helper was specificly designed to do things like the latest article plugin on the left of this page :-) Hope that clears it up a bit or if I completely mis-understood what you where asking for, let me know :-) Alan |
Oops, just seen you edited post :-)
Modules generally have their own controller directory such as: Code:
/applicationAlan |
Here is the thing. I write my modules as little programs that use the core and user part of the CMS as a framework. so they are independent from the other parts of the cms.
I would like my structure to be like this Code:
controllers/:/ |
Yep, that would be no problem. Zend Framework tries not to force you in to working the way it wants you to so it allows you to fully control what route maps to what module/controller/actions :-)
Alan |
| All times are GMT. The time now is 06:44 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0