I'm looking for a way to create zend-based application (web store) which I would extend by plugins in the future. For now I have base functionality (browsing products, make orders etc).
What I need is make possibility to attach plugins to this app. By "plugin" I mean some static files structure in sepearated directory. One of plugins, which I want to write in future is allegro(polish eBay like)-integration tool. it would operate on existing models (user, product etc). It needs to have their own controller which would be executed in backend; Some other should be like public-accessible simple gallery for front-end. Some of other plugins should be able to attach content on previously definied spots in view.
I have no idea how can I reach this. Every of these plugins should have their own directory and It's very important;
Maybe there is some free extensible zend-based CMS? what would be yours choice? Please for ideas and thanks for help
You are looking for zend module
. Each module will be having independent functionality.
Module structure is below
zf2-tutorial/
/module
/Album
/config
/src
/Album
/Controller
/Form
/Model
/view
/album
/album
Likewise you can have modules like Oerder
, Payment
, User
etc etc.
And you can create some interface
to communicate through modules.
Below link will help you
http://framework.zend.com/manual/2.0/en/user-guide/modules.html
http://framework.zend.com/manual/2.0/en/modules/zend.module-manager.intro.html
If you are using ZF2, then modules are the way to go, as EVERYTHING in ZF2 can be a module. Check out http://modules.zendframework.com/ for an idea of what's available. Whats more is that you can drop a module into your application, try it out and then remove it if you dont think its right for your project. Everything about a module can be modified and modules should provide hooks that your other modules can listen to. Evan Coury (who wrote the core of the ModuleManager for zf2) has been working on https://github.com/speckcommerce which will probably cover alot of what you need