Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Validation with add_model and relations
  • The case: I want to have one form to save a new site with a domain which is a relation and use validation defined in the two models. See Db tables, models, form and controller here: http://scrp.at/aS6#L69 Note: http://scrp.at/aS6#L82 must be ->domains[]
  • I got it working with multiple validation instances... But the question remains: Is this the right way? Is it possible to add a relation model easier? http://scrp.at/aS-#L70 Or a new feature?
    $val = \Validation::forge();
    $val->add_model('Model_Site');
    $val->add_related_model('Model_Domains');
    
    

Howdy, Stranger!

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

In this Discussion

  • Mike December 2011