Skip to content

Instantly share code, notes, and snippets.

@phalcon
Created July 25, 2013 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phalcon/6083917 to your computer and use it in GitHub Desktop.
Save phalcon/6083917 to your computer and use it in GitHub Desktop.
<?php
$router = new Phalcon\Mvc\Router(false);
$router->add('/raw/brand/{brand}', array(
'module' => 'raw',
'controller' => 'brand',
'action' => 'index'
));
$router->handle('/raw/brand/bmw');
print_r($router->getParams());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment