Ignore:
Timestamp:
10/14/11 17:54:42 (14 years ago)
Author:
fpvanagthoven
Message:

Login works good. Mainmenu looks visually the same now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/cakephp/app/controllers/pages_controller.php

    r126 r127  
    8484            $title_for_layout = Inflector::humanize($path[$count - 1]);
    8585        }
     86       
     87        if ($page == 'home')
     88        {
     89            $this->home();
     90        }
     91       
    8692        $this->set(compact('page', 'subpage', 'title_for_layout'));
    8793        $this->render(implode('/', $path));
     
    8995
    9096    function home() {
    91        
     97        if($this->Auth->user())
     98        {
     99            $this->redirect(array('action' => 'display', 'mainmenu'));
     100        }
    92101    }
    93102
Note: See TracChangeset for help on using the changeset viewer.