コード例 #1
0
ファイル: VideoBackController.php プロジェクト: qubes/support
 public function postEdit()
 {
     $postData = $this->request()->postVariables();
     $newCategory = new Video();
     $newCategory->hydrateFromUnserialized($postData);
     $newCategory->saveChanges();
     $msg = new \stdClass();
     $msg->type = 'success';
     $msg->text = 'Video was successfully updated';
     Redirect::to('/' . $this->baseUri())->with('msg', $msg)->now();
 }