If I use $this->set('post',$this->Post->read()); in the controller

Why do I have to access it like this in the view:

echo $post['Post']['id'];

Shouldn't the proper way be echo $post['id'];

Is this a bug? Has the spec changed in 1.2? I went through the code
for the read() function in /cake/libs/model.php and all it does is
return $this->data. Has $this->data has changed from 1.1?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to