$fields = array ( "email" => array ( "type" => "email", "formAsk" => "Enter your e-mail:", "optional" => true, ), "myimage" => array ( "type" => "image", "formAsk" => "Upload your image:", "path" => "myimages/thumb/" "resize" => array ( "mode" => "maxxy", "limitX" => 200, "limitY" => 150, ), ), );The above code is all that is needed to make a form for inserting email + image, validate both, display errors if validation failed, resize image if needed, save in DB,... Note that this is DB agnostic - developer doesn't need to know about the underlying engine (but can of course change anything if he so wishes). The system proved very efficient and allowed fast form creation with minimal chance of validation problems - I have used it for the last 15 years and have succesfully solved very different problems with it. It would need a rebuild now though, which is the reason I am moving to another framework. If I understand correctly, ORM packages don't allow this level of abstraction - am I correct? Would it be interesting for FuelPHP to add this kind of abstraction? As I said, I would appreciate some pointers or ideas. The original idea was mine so I don't even know if it is a known concept (I presume it is though) and how it is called - I guess ORM is too broad term for it?
#content img, #content_side img { background-color:#FFFFFF; border:1px solid #DBDBDB; float:none; margin:0 10px 0 0; padding:5px; }Still not perfect, but way better.
It looks like you're new here. If you want to get involved, click one of these buttons!