April 24, 2010
Most WordPress Plugins are little more than small utilities but there are a growing number of them that can dramatically augment the way WordPress behaves or give WordPress advanced new features.
Blair Williams demonstrates an effective way to develop your own platform-modifying plugin (PMP) using a Model View Controller (MVC) approach with some additional tips and tricks learned from coding and supporting two different PMPs.
WordCamp Orange County 2010 13
May 21, 2010 at 10:08 pm |
The slides that go along with this presentation can be downloaded from my blog here:
http://blairwilliams.com/pimp
LikeLike
May 25, 2010 at 5:23 am |
Great talk!
A very light weight PHP MVC framework advocated by PHP creator’s Rasmus’ which is very much along the lines of the style of quick lightweight MVC you talked about here, as well as workable within WordPress architecture without the conflict issues of extra included libraries is “The no-framework PHP MVC framework” (yes, basically includes), but described very well here:
http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
(also.. CRUD = Create *Read* Update Delete)
LikeLike
May 25, 2010 at 5:36 am |
Viewers may also want to take a look at Tina MVC for WordPress
http://www.seeit.org/tina-mvc-for-wordpress/
LikeLike
May 25, 2010 at 6:05 pm |
@Blair, at 38:00, you talk about creating a mock test suite for WordPress. There has been a fair amount of work done in that area by John Bintz, in two projects called MockPress and a plug-in called Post Fixtures.
MockPress:
http://github.com/johnbintz/mockpress
WordPress Post Fixtures:
http://wordpress.org/extend/plugins/post-fixtures/
LikeLike
May 25, 2010 at 8:38 pm |
R’phael — that is some really interesting information — I’ll definitely take a look at the Tina MVC framework. I have to wonder though if you’d run into versioning issues between plugins if 1 plugin needed version x of Tina and another installed plugin needed version y… That is one reason why I like the self-contained, no-conflict MVC — but I’m definitely going to play around with Tina MVC — it’s a great concept.
I was unaware of these WP testing frameworks — I’m soooooo excited to start looking at them. That has been one pretty major issue I’ve seen so far with WP Plugin development and if these guys have workable solutions for this it would be awesome…
LikeLike
May 25, 2011 at 4:08 pm |
This is a good introduction to using MVC in WordPress plugins. It also covers the basics of MVC itself. His approach is thought-through and usable as a base for a standardized way of implementing MVC in WordPress plugins. I think a standardized approach is important because otherwise MVC wont be of much help when it comes to clarity. Maybe such a standardized way already exists, but I did not find much information on the subject until I found this video.
LikeLike