コード例 #1
0
ファイル: Blog.php プロジェクト: KathyLynne/miniblog
 public function delete()
 {
     $post = new Post_model();
     $post->id = $this->uri->segment(3);
     if ($post->delete()) {
         redirect(base_url(), 'location');
     }
 }