Extend controller in subfolder |
[eluser]crazypolecat[/eluser]
Hello, In my Controllers folder, I have a folder name User. In this folder I have a controller name User, which extends CI_Controller. How do I go about extending this User class even though it is in a subfolder in the Controllers folder? CI seems to only look in the root of the Controllers folder and not in the subfolders to find a class to extend from (for example, the User class in my example). This is probably something trivial, but I haven't found a solution yet. Thanks, Bart
[eluser]InsiteFX[/eluser]
Read this! CodeIgniter Base Classes: Keeping it DRY - by Phil Sturgeon InsiteFX
[eluser]crazypolecat[/eluser]
This is one approach to tackle the problem. Thanks for your response. |
Welcome Guest, Not a member yet? Register Sign In |