I use $rslt = Class::model()->findAll(); for research and I need to display the result table to the test. I use this instruction print_r($rslt[‘attributes’]); but it doesn’t worked. It caused an exception
can someone help me plz?
I use $rslt = Class::model()->findAll(); for research and I need to display the result table to the test. I use this instruction print_r($rslt[‘attributes’]); but it doesn’t worked. It caused an exception
can someone help me plz?
Did you noticed that you are posting in the "french" forum ? …
Je crois bien que findAll() va te renvoyer un tableau d’instances CACtiveRecord … donc essaye de qqchose comme :
print_r($rslt[0]->getAttributes());
Bien sûr pour que cela marche il faudra qu’au moins un résultat soit renvoyé …
ciao