You are right. There is a bug in the code used in the screencast. I
think the problem is that edit.thtml is copied from add.thtml but
forget to include the line  <?php echo $html->hidden('Post/id'); ?> so
the id is not posted and the controller ends adding a new post. The
code in the manual is correct though.

I wonder how nobody noticed this before...

On Mar 1, 1:41 pm, "skatona" <[EMAIL PROTECTED]> wrote:
> I must be losing it.
>
> I'm a veteran php web developer and a friend said cakephp was awesome
> so I've checked it out and gone through a couple screencasts.  Am I
> crazy, or is the Blog Tutorial screencast wrong?  More specifically,
> the Edit functionality does NOT edit a post.  It merely Adds one.
>
> Watch the screencast again.  You click Edit, it brings up the Title
> and Body textboxes with the information from that post, but when you
> edit it and save - it just creates a new post!  I thought Edit meant
> "change", not "give me the info so I can use it in another NEW post".
>
> Someone please help me out here.
>
> -Shaun


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to