Example #1
0
 function blog_edit_handler()
 {
     $this->check_login();
     $params = $this->input->post();
     if (isset($params['save'])) {
         Blog::edit($params);
     }
     redirect('admin/blogs');
 }
Example #2
0
 public function edit($id)
 {
     $blog = new Blog();
     $this->viewOptions = $blog->edit($id);
     // アクション名を指定する
     $this->action = 'edit';
     // ビューを呼び出す
     include 'views/layout/application.php';
 }
Example #3
0
 public function edit($id)
 {
     //モデル呼び出し
     $blog = new Blog();
     $this->editOption = $blog->edit($id);
     //アクション名指定
     $this->action = 'edit';
     //ビューを呼び出す
     require 'views/layout/application.php';
 }