Welcome Guest, Not a member yet? Register   Sign In
Problem with inheritance
#1

[eluser]masterix[/eluser]
I haven't found it so I post here.

I have following dependence hierarchy in my project:

Code:
class Admin extends Controller
class NewsAdmin extends Admin
class ArtAdmin extends Admin
class ConfigAdmin extends Admin

The problem occurs when I invoke NewsAdmin controller. CI doesn't know anything about Admin class. It can be solved by adding:
Code:
require_once('admin.php');
but this solution isn't nice for me. Is there any other ?

Thanks in advance for help.


Messages In This Thread
Problem with inheritance - by El Forum - 08-23-2007, 05:06 AM
Problem with inheritance - by El Forum - 08-23-2007, 07:07 AM
Problem with inheritance - by El Forum - 08-24-2007, 04:44 PM
Problem with inheritance - by El Forum - 08-24-2007, 06:22 PM
Problem with inheritance - by El Forum - 08-24-2007, 07:16 PM
Problem with inheritance - by El Forum - 08-24-2007, 08:51 PM
Problem with inheritance - by El Forum - 08-24-2007, 09:06 PM
Problem with inheritance - by El Forum - 08-24-2007, 09:12 PM
Problem with inheritance - by El Forum - 08-25-2007, 06:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB