/** * edit action allows to display an edit view * * @ActionDefinition( layout='auth_layout.tpl', zone='content:users_edit;', propel ) */ public function edit() { $this->response->_id = $this->request->_id; $response = AuthUsersBss::getByPK($this->request->_id); if (is_array($response)) { $this->add(); $this->response->element = $response; // get reference's content for auth_roles $auth_roles = AuthRolesBss::getAll($this->request); $this->response->auth_roles = $auth_roles['data']; } else { $this->response->exception = $response; } }