Changeset 127 for Dev/branches/cakephp/app/controllers
- Timestamp:
- 10/14/11 17:54:42 (14 years ago)
- Location:
- Dev/branches/cakephp/app/controllers
- Files:
-
- 2 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 -
Dev/branches/cakephp/app/controllers/users_controller.php
r126 r127 66 66 $this->User->create(); 67 67 $this->User->save($this->data); 68 $this->redirect(array('action' => 'login')); 68 69 } else { 69 70 $this->Session->setFlash('Could not register. Try again.');
Note: See TracChangeset
for help on using the changeset viewer.