Example #1
0
 public function action_good($Pid)
 {
     if (Input::post()) {
         $good = Model_Good::forge();
         $good->Pid = $Pid;
         $good->username = Auth::get_screen_name();
         $good->save();
         $view = View::forge('post/success');
         return $view;
     }
 }
Example #2
0
 /**
  * 指定画像の「いいね!」を削除します
  */
 public function post_del()
 {
     $this->response(Model_Good::del());
 }