Welcome Guest, Not a member yet? Register   Sign In
For those who thinking of - Class child extends parent/Class extend or inheritance
#2

[eluser]bl00dshooter[/eluser]
First: Each class is like a controller. You're not suposed to have 2 controllers on the same file, so it doesn't work. There is a reason the filename must be equal to the class name, it's how codeigniter routing works.

Second: Phil Sturgeon already explained how to do what you want in his blog: http://philsturgeon.co.uk/index.php/news...ing-it-DRY

Third: How's codeigniter not playing well with OOP? It's based on OOP, controllers and models are OOP, etc. I think you incorrectly explained yourself or you don't understand how things work.

Fourth: Merry Christmas, sskl.


Messages In This Thread
For those who thinking of - Class child extends parent/Class extend or inheritance - by El Forum - 12-25-2010, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB