Welcome Guest, Not a member yet? Register   Sign In
Extend controller in subfolder
#1

[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
#2

[eluser]InsiteFX[/eluser]
Read this!

CodeIgniter Base Classes: Keeping it DRY - by Phil Sturgeon

InsiteFX
#3

[eluser]crazypolecat[/eluser]
This is one approach to tackle the problem. Thanks for your response.




Theme © iAndrew 2016 - Forum software by © MyBB