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; } }
/** * 指定画像の「いいね!」を削除します */ public function post_del() { $this->response(Model_Good::del()); }