Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Using CRUD returnes undefined method
  • Hi everyone,
    This is probably a newbie mistake however whenever I use Model_Users::find() or if I do this:
    $user = new Model_Users();
    $user->username = Input::Post('username');
    $user->save();

    Then I get the error "Call to undefined method Model_Users::find()"

    I can however call a function within my model so this seems to be restricted to Fuel's crud methods.

    Any ideas guys?



  • Solved it, Newbie mistake haha, I forgot to load in the ORM package in the config... >.<
  • Ok sorry no I didnt, I just created another error due to a typo, once I fixed that it was back to square one... think I need a coffee!
  • Ok I really have solved it this time, didnt extend the orm in the model...

Howdy, Stranger!

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

In this Discussion