php 5.1.6 magic __toString method
- by NachoF
In codeigniter Im trying to use this plugin which requires I implement a toString method in my models. My toString method simply does
return $this->name
On my local machine with php 5.3 everything works just fine but on the production server with php 5.1.6 it shows "Object id#48" where the value of the name property of that object should appear..... I found something about the problem here but I still dont understand... How can I fix this?