Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Form::forge method
  • I'm starting my first FuelPHP project and I'm just trying to find my way around. I've been following the http://ucf.github.com/fuelphp-crash-course/ tutorial and reading through the documentation. 

    One thing I'm a bit confused about is that the tutorial uses the following:

         $form = Form::forge('login');

    but there doesn't seem to be any reference to the Forge method in the From documentation:


    Does it inherit this from a superclass or how does it work? any help much appreciated. 

    Thanks

    Jim
  • HarroHarro
    Accepted Answer
    The documentation mainly touches the form helpers, the static method of the Form class.

    The Form instance is mainly used internally in the Fieldset class, used to generate forms, and supports built-in form validation. You can use it on it's own, but internally it will create a fieldset instance for most of it's functionality.

    There are however methods in there that are also handy to know when you're dealing with fieldsets, so it does need to be documented better. I'll put that on the todo list!
  • Many thanks for the reply.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion