コード例 #1
0
ファイル: issue.php プロジェクト: neosin/tinyissue
 public function post_new()
 {
     $issue = Project\Issue::create_issue(Input::all(), Project::current());
     if (!$issue['success']) {
         return Redirect::to(Project::current()->to('issue/new'))->with_input()->with_errors($issue['errors'])->with('notice-error', 'Whoops, we have a few errors.');
     }
     return Redirect::to($issue['issue']->to())->with('notice', 'Issue has been created!');
 }
コード例 #2
0
ファイル: issue.php プロジェクト: eliasyanni/bugs
 public function post_new()
 {
     $issue = Project\Issue::create_issue(Input::all(), Project::current());
     if (!$issue['success']) {
         return Redirect::to(Project::current()->to('issue/new'))->with_input()->with_errors($issue['errors'])->with('notice-error', __('tinyissue.we_have_some_errors'));
     }
     return Redirect::to($issue['issue']->to())->with('notice', __('tinyissue.issue_has_been_created'));
 }