Changeset 127 for Dev/branches/cakephp/app/controllers/pages_controller.php
- Timestamp:
- 10/14/11 17:54:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/cakephp/app/controllers/pages_controller.php
r126 r127 84 84 $title_for_layout = Inflector::humanize($path[$count - 1]); 85 85 } 86 87 if ($page == 'home') 88 { 89 $this->home(); 90 } 91 86 92 $this->set(compact('page', 'subpage', 'title_for_layout')); 87 93 $this->render(implode('/', $path)); … … 89 95 90 96 function home() { 91 97 if($this->Auth->user()) 98 { 99 $this->redirect(array('action' => 'display', 'mainmenu')); 100 } 92 101 } 93 102
Note: See TracChangeset
for help on using the changeset viewer.