revjim.net Rotating Header Image

Maverick -> Ambivalence

For you Java folks, Maverick looks like an interesting project. It's another web application framework pushing the MVC (Model 2) pattern similar to Struts. [via Matt Croydon]

More interesting than that — to me anyway — was a link I found on the Maverick site to "PHP Maverick" or Ambivalence. I haven't dug very deep into this yet, however, at first glance, my impressions of it are better than they were with Phrame (which is modeled after Struts) for several reasons.

First of all, it uses an XML based mappings file instead of a native PHP file. Editing such a complex structure using native PHP code just looks ugly. Secondly, instead of using $_REQUEST variables (via GET or POST) to determine which "action" it should take, it uses $_SERVER['PATH_INFO'] — a much cleaner approach in my opinion.

I've been working on a mini-tutorial for using Phrame. However, if this framework appears to operate cleaner, I'll rewrite it to use Ambivalence instead. The best part about that is, either way, I'm using the MVC pattern, so almost all of my code merely plugs into an entirely new framework. Can I get three cheers for MVC?

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Digg
  • del.icio.us
  • Google
  • Reddit
  • Technorati
  • Furl
  • Spurl
  • Live
  • Pownce
  • TwitThis