Inheritance in codeigniter

#2
[eluser]richthegeek[/eluser]
Yes, just as it is in all PHP programs.

With regards to inheritance itself, you can extend the controller or model base class (see "Extending Core" in guide) and libraries as well.

For polymorphism, you probably want to create a model that acts as the factory and include the target classes in the same file for creation by the model-extending class.


Messages In This Thread
Inheritance in codeigniter - by El Forum - 02-02-2010, 06:15 AM
Inheritance in codeigniter - by El Forum - 02-02-2010, 06:22 AM
Inheritance in codeigniter - by El Forum - 02-02-2010, 07:09 AM
Inheritance in codeigniter - by El Forum - 02-02-2010, 11:18 AM
Inheritance in codeigniter - by El Forum - 02-02-2010, 11:22 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.