December 2, 2009

and more on plugins

Tags: , , , , ,
Filed under: ZenMagick — DerManoMann @ 9:49 pm

After some interesting discussions in the comments and also in the new forum, I’ve decided that I’ll add some more changes to the next release regarding plugins.

In fact, it’s a partial rewrite of how plugins generate admin UI content. Precondition for that was to convert all ZenMagick admin pages to using the MVC framework. While this is not complete it now still allows to write proper controller and views for admin pages. A side effect is that it will make it much easier to get to a point where the admin UI could be skinned similar to what themes do for the storefront.

It also means that the new plugin naming conventions will be active in the next release.

I made a small change compared to the previous proposal, though. The word ‘Plugin‘ is now expected to be at the end of the main plugin clas; for example: ‘ZMQuickEditPlugin‘. This means all classes will start with the same plugin specific prefix (‘ZMQuickEdit‘ in the example), which acts as some simple sort of namespace, I guess.

A downside to all of this is that all plugins need to be updated. On the other hand it means I really need to test all of them and I already found a few bugs in existing versions….

I’ll be publishing a new snapshot over the weekend I hope. That should also include the latest zen cart XSS patch in zc-base.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.