Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
is this the way to use simple auth
  • hello i tried to add data in simpleauth table using the the
    $auth= \Auth\Auth_Login_SimpleAuth::_init();
            $auth->create_user('samitrimal','samitrimal','example@yahoo.com',100,array('phone'=>3434343,'address'=>'gaurighat'));
    
    the error occoured
    ErrorException [ Error ]: Call to a member function create_user() on a non-object
    
    how to create object of simple auth class to create the user?
  • $auth= \Auth::instance();
    $auth->create_user('samitrimal', 'samitrimal', 'example@yahoo.com', 100, array('phone' => 3434343, 'address' => 'gaurighat'));
    

    Check out this tutorial: http://saaboke.com/?p=236
  • thank u it was grt tutorial

Howdy, Stranger!

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

In this Discussion