Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Suggestion : Hook callback
Post: Suggestion : Hook callback

Hi, Hook allows to pass parameters only in the configuration array. Code: -- $hook['pre_controller'] = array(        'class'    => 'MyClass',        'function' => 'Myfunction',        'fi...
1,692 Views
0 Replies
03-12-2016, 03:58 PM
djha
    Thread: Suggestion : SPL Autoload config
Post: RE: Suggestion : SPL Autoload config

I register my autoload function in the file "vendor/autoload.php". (previously, I used the pre_system hook). Thanks, M.
3,494 Views
2 Replies
09-08-2015, 03:20 PM
djha
    Thread: Suggestion : SPL Autoload config
Post: Suggestion : SPL Autoload config

Hi, Actually, loading a class is only possible by "CI_Loader" class. It will be interesting to disable this feature and use "spl_autoload_register". An option $config['spl_autoload'] with a function...
3,494 Views
2 Replies
09-07-2015, 04:09 AM
djha
    Thread: Extends CI_Session
Post: RE: Extends CI_Session

Hi, You are wrong, CI_Session is not a core class like "Controller" or "Exception". You can find "CI_Session" in "system/libraries" and not in "system/core". If you want to extends "CI_Session"...
5,051 Views
2 Replies
09-07-2015, 02:10 AM
djha
    Thread: Extends CI_Session
Post: Extends CI_Session

Hi, I tried to extends CI_Session by create the file "application/libraries/MY_Session.php". This file contains the class :  Code: -- Class MY_Session extends CI_Session -- But that's no...
5,051 Views
2 Replies
09-06-2015, 03:54 PM
djha

Theme © iAndrew 2016 - Forum software by © MyBB