loading my model to load_class |
10-31-2017, 06:57 AM
(This post was last modified: 10-31-2017, 07:06 AM by Vitaly83. Edit Reason: Specifed CI version )
I my project I need to create model without CI instance.
I use function load_class. PHP Code: function &load_class($class, $directory = 'libraries', $param = NULL) If file_exists($path.$directory.'/'.$class.'.php') in the applications/models directory then the $name variable is set to $name = 'CI_'.$class; and check for new class name. And the $name variable's value won't changes to $class if CI.$class does not exist. After that the system tries to load not existed class with name CI.$class instead of existed class $class. Is this bug or I don't undestand logic of this function? I use the latest version of CI 3.x. |
Messages In This Thread |
loading my model to load_class - by Vitaly83 - 10-31-2017, 06:57 AM
RE: loading my model to load_class - by dave friend - 10-31-2017, 08:12 AM
RE: loading my model to load_class - by Narf - 10-31-2017, 09:18 AM
RE: loading my model to load_class - by Vitaly83 - 10-31-2017, 10:31 PM
RE: loading my model to load_class - by dave friend - 11-01-2017, 09:45 PM
RE: loading my model to load_class - by Narf - 11-01-2017, 05:05 AM
RE: loading my model to load_class - by Vitaly83 - 11-01-2017, 05:51 AM
RE: loading my model to load_class - by Vitaly83 - 11-02-2017, 02:30 AM
RE: loading my model to load_class - by Narf - 11-02-2017, 03:38 AM
RE: loading my model to load_class - by Vitaly83 - 11-02-2017, 04:12 AM
RE: loading my model to load_class - by Narf - 11-02-2017, 06:15 AM
RE: loading my model to load_class - by Vitaly83 - 11-02-2017, 07:30 AM
|