Well I stand corrected, sort of :)

Thanks to an email reply sent direct to me, by mistake, by JasonFX I
decided to look at the blog tutorial a little closer and whilst what I
say above is right on the page I supplied a link for, I was unaware
that further on in the tutorial when dealing with editing and deleting
the tutorial examples include the following links

<?php echo $html->link($post['Post']['title'],array('action'=>'view',
'id'=>$post['Post']['id']));?>

<?php echo $html->link('Edit', array('action'=>'edit', 'id'=>
$post['Post']['id']));?>

<?php echo $html->link('Delete', array('action' => 'delete', 'id' =>
$post['Post']['id']), null, 'Are you sure?' )?>

I assume this is an error as the previous page about views definitely
covers passing the id as an unnamed parameter to the controller action
and in the 1.3 tutorial (pointed out by JasonFX) the above links don't
use named parameters.

Have added comments to the pages of the 1.2 tutorial where I spotted
this:
http://book.cakephp.org/view/339/Deleting-Posts
http://book.cakephp.org/view/340/Editing-Posts

Paul

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to