Welcome Guest, Not a member yet? Register   Sign In
Probably a php-related question..
#1

[eluser]stormbytes[/eluser]
So as the title says, this is probably a php-related question, but being an avid CI addict I figured I'd post it here, seeing how terrific the crowd has been about helping me out!

I'd like to create a a Model called 'stacks', which has a method called 'Rows'. Now I don't know if this would be a 'subclass' of if I'm really even using the right term, but what I'm trying to do is make it so that 'Rows' has its own properties/methods.

For instance:

Code:
$Stacks->name

Would be a property of 'Stacks' class.

Then:
Code:
$Stacks->rows->count()

Would return the 'count' of the 'rows' object.

I hope I'm explaining this adequately. I'm not sure how to work it... If someone would be kind enough to post a sample snippet of how to declare this 'subclass' (or at least that's what I'm calling it!) that would be grand -

Thanks!


Messages In This Thread
Probably a php-related question.. - by El Forum - 10-19-2010, 09:37 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 10:46 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 10:57 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 11:19 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 11:25 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 11:46 AM
Probably a php-related question.. - by El Forum - 10-19-2010, 01:20 PM
Probably a php-related question.. - by El Forum - 10-19-2010, 05:01 PM
Probably a php-related question.. - by El Forum - 10-20-2010, 10:48 AM
Probably a php-related question.. - by El Forum - 10-20-2010, 11:45 AM
Probably a php-related question.. - by El Forum - 10-20-2010, 01:20 PM
Probably a php-related question.. - by El Forum - 10-20-2010, 01:25 PM
Probably a php-related question.. - by El Forum - 10-20-2010, 01:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB