working through cake blog tutorial

This commit is contained in:
Dan Buch
2011-01-03 11:08:43 -05:00
parent d65971eb9c
commit d5889c0cb8
7 changed files with 125 additions and 2 deletions

View File

@@ -26,8 +26,11 @@
* its action called 'display', and we pass a param to select the view file
* to use (in this case, /app/views/pages/home.ctp)...
*/
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
// Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
Router::connect('/', array('controller' => 'posts', 'action' => 'index'));
/**
* ...and connect the rest of 'Pages' controller's urls.
*/
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
?>