/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the user exists if ($this->id !== null && BackendUsersModel::exists($this->id)) { parent::execute(); $this->record = (array) BackendUsersModel::get($this->id); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }