Welcome Guest, Not a member yet? Register   Sign In
Use new Model()
#1

(This post was last modified: 12-10-2019, 07:01 AM by Myster.)

Hello, first of all sorry for my English I am French.

I would like to know how is it possible to use models like this:

$ var = new Model ();

Because I do not like $ this-> model-> method

I prefer to work as I use class with bookstores, I do not want to get lost with the models

For example for my class User I do:
require_once (APPPATH. 'libraries/User.php');

$ user = new User ();

I would like to do that for models but when I do
require_once (APPPATH. 'models/AuthTable.php');

$ table = new AuthTable ();

I have this error:
Message: Class 'CI_Model' not found


Thank you
Reply


Messages In This Thread
Use new Model() - by Myster - 12-10-2019, 07:00 AM
RE: Use new Model() - by jreklund - 12-10-2019, 11:45 AM
RE: Use new Model() - by InsiteFX - 12-10-2019, 12:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB