简体   繁体   中英

How would you handle extensions/plugins within Zend Framework?

For one of my client I need to develop a CMS. For instance, I need to have the following features:

  1. Skinnable (layout and extensions)
  2. Able to upload zip archives and process them (they contain pictures)
  3. Classic pages (articles ala wordpress, joomla)
  4. Contact form
  5. A catalog
  6. A cart

I'm used to Zend Framework so I'd like to develop it using Zf.

I'd like to have a very modular application, and I hope that my experience in playing around with Modx, Wordpress, Joomla, Magento will help me to avoid bad design.

I'd like to have a minimalist core system which on I could plug extensions/plugins and be able to customize them using defined conventions.

For example, I'd like that even one of my "core" features will be one of these extensions.

My feature could have:

  1. An admin interface
  2. A custom/default skin/themes
  3. Models
  4. Any needed fixtures
  5. A configuration files (xml/ini)
  6. Controllers
  7. Views

So my question is how would you handle such design? Is it good?

I'm wondering on how I'll register an extension to my app, how will I use it inside my layouts, controllers.

Well I don't really know how to start as the design will define all the development of my application.

I already decided to use ZF 1.1/2, Doctrine 2, jQuery/Dojo (don't know yet I don't really know Dojo)

Unfortunately, I cannot address all your questions. However, if you don't know where to start, I would recommend having a look (if possible) at Pro Zend Framework Techniques: Build a Full CMS Project . The book is not perfect, it does not cover plugins or extensions, but it gave me some information and a basic idea of how to build a CMS using ZF. One of the more interesting things that I learned from this book was using Node pattern as your data structure for CMS and how to use it in ZF as well as how to make layout skins. Additionally, you could have a look at the code of existing ZF's CMS systems such as TomatoCMS and Magento .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM