예제 #1
0
 function action_post_edit_post()
 {
     include "application/models/model_post.php";
     $subject = $_POST['subject'];
     $text = $_POST['text'];
     $id = $_POST['id'];
     $post = new Model_Post();
     $data = $post->update_post($id, $subject, $text);
     header('Location: /admin', true, 303);
 }