Skip to content

Instantly share code, notes, and snippets.

@hewerthomn
Created April 28, 2013 15:55
Show Gist options
  • Save hewerthomn/5477312 to your computer and use it in GitHub Desktop.
Save hewerthomn/5477312 to your computer and use it in GitHub Desktop.
exemplo de routing do cakephp
// adicionar no arquivo routes.php
Router::connect('/noticia/:id/:title',
array('controller' => 'posts', 'action' => 'view'),
array('pass' => array('id'), 'title' => '[a-z0-9-#]+','id' => '[0-9]+')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment