News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney's Blog:
Simple Interfaces and Micro MVCs
December 23, 2010 @ 09:29:07

In a new post to his blog today Matthew Weier O'Phinney takes a look at micro MVC frameworks and how, with just a bit of lightweight code and pieces of the Zend Framework, creating one is dead simple.

My job is great: I get to play with technology and code most days. My job is also hard: how does one balance both functionality and usability in programming interfaces? [...] One interface I've been toying with is inspired by two very different sources. The first is PHP's own SoapServer API (which we use already in our various server components); the other was a discussion I had with Fabien Potencier (of Symfony fame) a couple years ago, where he said the goal of Symfony 2 would be "to transform a request into a response."

The result is a simple Dispatachable interface that acts as the lowest level to build the whole MVC on top of. He illustrates with a micro MVC example that uses the Dispatchable interface to create a Dispatcher class to handle the incoming requests and attach various endpoints for handling. An example of it in use is also included.

0 comments voice your opinion now!
interface dispatch zendframework micromvc mvc


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: PHP Abstract Podcast Episode 15: The Zend Access Control List

Ryan Mauger's Blog: Keeping your html valid with Zend Framework, Tidy and Firebug

Matthew Weir O'Phinney's Blog: Zend Framework MVC Webinar posted

Zend Developer Zone: Zend Framework 1.7.5 Released (Security Fix)

Zend Developer Zone: php|architect Announces 'Programming with the Zend Framework'


Community Events





Don't see your event here?
Let us know!


opinion library tool series security release language laravel version community package symfony application voicesoftheelephpant podcast composer update interview introduction framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework