Welcome Guest, Not a member yet? Register   Sign In
How is model/table inheritance supported in CI?
#1

[eluser]Unknown[/eluser]
Hello,

I've read the article on Models (http://ellislab.com/codeigniter/user-gui...odels.html) but I am still unsure how should I represent the following structure:

Code:
abstract class Object_model
{
   var $name;
   var $colour;
   var $texture;
}

class Cube_model extends Object_model
{
  var $sideLength;
}

class Sphere_nodel extends Object_model
{
  var $radius;
}

What would be the most common way of implementing the above within CodeIgniter?
Would I keep the above hierarchy along with a class-table inheritance?

Thanks in advance.


Messages In This Thread
How is model/table inheritance supported in CI? - by El Forum - 07-12-2008, 04:31 PM
How is model/table inheritance supported in CI? - by El Forum - 07-13-2008, 02:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB