Advertisement
Guest User

Untitled

a guest
Jul 15th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. php public/index.php run-report --email=first@example.com --email=second@example.com
  2.  
  3. run-report [--email=]
  4.  
  5. 'test' => array(
  6. 'type' => 'catchall',
  7. 'options' => array(
  8. 'route' => 'test', //this isn't actually necessary
  9. 'defaults' => array(
  10. 'controller' => 'ConsoleControllerIndex',
  11. 'action' => 'test'
  12. )
  13. )
  14. )
  15.  
  16. php index.php test --email=test@testing.com --email=test2@testing.com
  17.  
  18. print_r( $this->getRequest()->getParams()->toArray() );
  19.  
  20. Array
  21. (
  22. [0] => test
  23. [1] => --email=test@testing.com
  24. [2] => --email=test2@testing.com
  25. [controller] => ConsoleControllerIndex
  26. [action] => test
  27. )
  28.  
  29. php index.php email --email=test@testing.com --email=test2@testing.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement