Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. public function postAddMember()
  2.     {
  3.         //get Input data
  4.         $r=Input::all();
  5.         //validate
  6.        if($this->recentAssignment->validateInput($r))
  7.         {
  8.            if( $this->recentAssignment->createRecentAssignment($r))
  9.            {
  10.                 return Redirect::to('project/detail/'.$r['project_id'])->with('tab_id', 'member');
  11.             }
  12.             else
  13.             {
  14.               return Redirect::to('error');
  15.             }
  16.         }
  17.     }
  18. //
  19.  @if(Session::has('tab_id'))
  20.     AJS.tabs.change(AJS.$("a[href=#{{Session::get('tab_id')}}]"));
  21.     @endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement