Advertisement
Guest User

Untitled

a guest
Apr 14th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //Inline routing (Filter)
  2. '(:user)/(:pass)/example' => function() {
  3. //Get value of :user here
  4. $user = ;
  5. //Get value of :pass here
  6. $pass = ;
  7. echo $user . ' + ' . $pass;
  8. if(strlen($user) && strlen($pass)) {
  9. return Request::forge('net/luvina/training/example', false)->execute();
  10. } else {
  11. return Response::forge('Access Denied');
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement