Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
function add_model() in form.php calls add_model() in fieldset.php
  • I'm not sure if I don't quite understand or if this is a bug. The function add_model() in core/classes/fieldset.php takes 3 parameters. There is also a function add_model() in core/classes/form.php which is an alias for $this->fieldset->add_model(). The add_model() function in form.php calls the add_model() function in fieldset.php, however it only uses 1 of the 3 parameters: $this->fieldset->add_model($class). It seems that it should call with all 3 parameters: $this->fieldset->add_model($class, $instance, $method) One unintended result will be that the $method will always default to 'set_form_fields' and cannot be changed.
  • It's a bug, all params should be passed. Would you be so kind as to report it to the bugtracker? https://github.com/fuel/core/issues
  • I've entered it into bugtracker.

Howdy, Stranger!

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

In this Discussion