See the new Formo 2 FAQ Page¶
FAQ¶
Does Formo support Kohana 3.0?¶
Not yet, but a new version is in the works.
Is Formo being actively developed?¶
Yes.
If I can't continue, I'll get someone to take over the project.
Why are there so many files?¶
Yes, the file structure is a bit ridiculous at first glance, but at the same time it allows for much more optimization and flexibility than any other form library.
What general direction is Formo headed?¶
All development for Formo right now deals with the following three goals in mind:- Cut back source code to the bare essentials
- Cover all pertinent usability issues
- Fit into Kohana like a glove
Every revision of Formo ought to be meaner, leaner and more natural inside Kohana.
How do I change the tags for the block element surrounding an element?¶
// to set it for on element
...
->add('username')
->set('username', 'open', '<div class="myclass">')
->set('username', 'close', '</div>');
// to set it globally, make it a global
$config['globals']['open'] = '<div class="myclass">';
$config['globals']['close'] = '</div>';
// or if you need it set globally but only for this one form
$globals = array
(
'open' => '<div class="myclass">',
'close' => '</div>'
);
...
->set('globals', $globals
or consider formatting the entire form in a view
Read how to do it here
How do I change the label tags¶
See above, only the variables to change are label_open and label_close.
Also, it's important to note that the label looks for for="{name}" and replaces the label with the correct name that matches the element id. It's a good idea to preserve this your custom label tags.
How do I do x?¶
First, take a look through the docs. I really suggest getting a good feel for how Formo works from the docs as it'll help you use it.
Post in the forums. I'm happy to let you know how to do something.
Did I mention look in the docs? Dude, I spend a [expletive implied] long time writing those. Please use 'em and we'll all be forever grateful (well I will at least).
I found a bug, and...¶
Stop right there. Post your bug as a new issue and we'll all be forever grateful.
Will you implement feature x ?¶
Maybe.
Think it through, and see you can make it fit as something the majority would want as part of a Formo base install. If you'd like, open a forum discussion to flesh out the idea.
When your idea is fleshed out and you know how your feature ought to work, please post the feature request as an issue with detailed comments. This will ensure I have your feature request staring me in the face to consider.
Many of Formo's great features came originally from requests.
Speaking of features, what kind of features are you interested in adding?¶
Real-world, modern form features that have broad uses.
Please, by all means write specific plugins and drivers (I do all the time) and share 'em with all of us, but the specific ones will never have a place as official drivers/plugins.
Which plugins do you use?¶
I generally auto-load success and auto_i18n.
I use orm, habtm, mval with any forms dealing with model information, and often throw in ajaxval for good measure.
In nearly every app, I use a custom plugin that makes forms work exactly how that app needs them to.
What's the Formo standard for MVC?¶
There is no standard. Generally, it's a good idea to at least validate in the model (hence the mval plugin), but reproducing the actual form in the view is probably not necessary most of the time.