It seems that you only have one product object in session and you're
looping through it as if there were many product objects in session.
Thats why you're getting the weird results like "U', "B", "N', etc.
Its turning the words into an array and printing the first letter. Try
this:
function show() {
$this->set('product', $this->Session-
>read('Product'));
}
<table>
<tr>
<td><?php echo $product['id']; ?></td>
<td><?php echo $product['name']; ?></td>
<td><?php echo $product['description']; ?></td>
<td><?php echo $product['price']; ?></td>
<td><?php echo $product['virtual']; ?></td>
<td><?php echo $product['active']; ?></td>
<td><?php echo $product['sort_order']; ?></td>
<td><?php echo $product['created']; ?></td>
<td><?php echo $product['modified']; ?></td>
</tr>
</table>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---