|
|||
|
Hi, I have a model where I'm trying to access the 'id' field. For example, I have the following code:
PHP Code:
Undefined property Animal::$id How does one define the properties of a model? Thanks in advance, -Conrad Last edited by conradwt : 12-20-2007 at 07:07 AM. |
|
|||
|
In this case Animal is a table class, and therefore it doesn't have any properties.
However, you can fetch rows from it and access their properties respectively. $this->id doesn't make sense to me. What exactly are you trying to achieve? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|