Created
April 28, 2013 15:55
-
-
Save hewerthomn/5477312 to your computer and use it in GitHub Desktop.
exemplo de routing do cakephp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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