Permalink
Browse files

if connectHome set / route to pages display home

  • Loading branch information...
1 parent b3eb525 commit fe1cf980edc3dde3245cc864053b639aa806756a @sams committed Feb 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Config/routes.php
View
@@ -4,3 +4,6 @@
Router::connect('/:page', array('controller' => 'pages', 'action' => 'display'),
array('routeClass' => 'PageRoute')
);
+if(Configure::read('PageRoute.connectHome')) {
+ Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
+}

0 comments on commit fe1cf98

Please sign in to comment.