Check a function before doing anything? |
i think you can do this :
- create a controller in /core/ that extends CI_Controller and call your function in constructor function of that class, - your other controllers must extend your controller class, example , i use this base class for my project, notice you must use MY_ (or any that you set in config) instead of N2_ Code: class N2_Controller extends CI_Controller { and your other controllers : Code: defined('BASEPATH') OR exit('No direct script access allowed');
ressan.ir
CI is nice |
Messages In This Thread |
Check a function before doing anything? - by Hamed - 04-12-2015, 07:34 AM
RE: Check a function before doing anything? - by nasser.man - 04-12-2015, 08:51 AM
RE: Check a function before doing anything? - by casa - 04-12-2015, 11:16 AM
RE: Check a function before doing anything? - by chrismartinez99 - 04-22-2015, 08:52 AM
|