When a post is displayed using the show operation, we display a delete link if the current user is the system owner. Clicking on this button would cause the deletion of the post. Since the post deletion is causing the change of the server-side data, we use a POST request to trigger the deletion. We thus use the following code to generate the delete button:
Just wondering, is the _post.php supposed to be created by me? I did not see it in the blog folder created as I followed the tutorial.
Thanks
ps: is there another tutorial somewhere on the net on Yii that explain steps in more detail? I notice the tutorials here assume many things on the part of a newbie like me.
Well, I think there may be much abbreviation in this document. If you know PHP well, I would recommend you reading the code instead, as the application is not big.