Controller action: function view($username) { if ($username != NULL) { if ($this->Session->check('User')) { $this->pageTitle .= 'View your profile'; // $pageTitle's beginning defined in app_controller.php $this->User->username = $username; $this->set('user', $this->User->read()); } else { $this->User->username = $username; $this->pageTitle .= 'Account Information › ' . $username; // $pageTitle's beginning defined in app_controller.php $this->set('user', $this->User->read()); } } else { $this->redirect('/users/list'); } } View (as bare as possible, just to check functionality):