Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
laravel.com
laravel.com
The ORM looks better than PHP ActiveRecord, though it's kind of weird that validations live outside of the database models.
I'm assuming you could put a static $validationRules on a model and grab it in a controller for validation, but that it's not described/recommended/defaulting to that behaviour is a bit disappointing.
There's no reason to tie a validation system into a model. That's enough justification for it not to be done. You have the flexibility to implement it easily in whatever way you see fit.
Hell - why have models? There's no reason to tie a model in to a framework - just be flexible and do it however you want, right?
In addition, the idiom of static calls for everything seems strange. Why was that pattern (or anti-pattern) chosen above other, more OO options?
This looks to be a very nice php framework. I used to be all over codeigniter or fuelphp, but since moving to ruby (rails & sinatra) I am happy to see php frameworks like this springing up.
great work.