DRY Base Controler |
Hi,
I am playing around with Ion Auth library. I came across an article from Kyle Noland explaining how to set up base controller performing the identity check. This was based on Phil Sturgeon article CodeIgniter Base Classes: Keeping it DRY. It did not work for me: the Secure_Controller would not load, I was getting an error stating it wasn't found ! I had to move the Secure_Controller class declaration to the application/core/My_Controller.php file. I believe using Base Controller is a fairly common setup: has anyone managed to get this working (without putting all the classes in the MY_Controller.php file) ? (This is not an Ion Auth problem, this is a loading base controller problem). Cheer, L@u
You need to add this autoloader to your ./application/config.php file:
PHP Code: /* What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |