public function _show() { $oExamplemodel = model_examplemodel::getInstance()->findById(module_examplemodule::getParam('id')); $oView = new _view('examplemodule::show'); $oView->oExamplemodel = $oExamplemodel; //icishow return $oView; }
public function _show() { $oExamplemodel = model_examplemodel::getInstance()->findById(_root::getParam('id')); $oView = new _view('examplemodule::show'); $oView->oExamplemodel = $oExamplemodel; //icishow $this->oLayout->add('main', $oView); }
private function processEditUser() { if (!_root::getRequest()->isPost()) { //si ce n'est pas une requete POST on ne soumet pas return null; } $oPluginXsrf = new plugin_xsrf(); if (!$oPluginXsrf->checkToken(_root::getParam('token'))) { //on verifie que le token est valide return array('token' => $oPluginXsrf->getMessage()); } $user_id = _root::getParam('id'); $group_id = _root::getParam('exampleUser_groupsId'); model_examplemodel::getInstance()->updateUserGroup($user_id, $group_id); _root::redirect('examplemodule::index'); }