function __construct($ctn) { parent::__construct($ctn); $this->view->assign("objects", $this->loadModel('objects')->getList()); $this->view->assign("typeList", $this->loadModel('types')->selectList()); $this->view->assign("characterList", $this->loadModel('characters')->selectList()); }
function __construct($ctn) { parent::__construct($ctn); // common stuff $accounts = $this->loadModel('accounts'); $this->view->assign("accounts", $accounts->load()); $id = $this->request->get('id', 'NUMBER', null, true); if ($id) { $this->view->assign("account", $accounts->load($id)); } }
function __construct($ctn) { parent::__construct($ctn); //TODO: condence here $characters = $this->loadModel('characters'); $this->view->assign("characters", $characters->load()); $this->view->assign("loginList", $this->_getLoginList()); $id = $this->request->get('id', 'NUMBER', null, true); if ($id) { // if needed $this->view->assign("character", $characters->load($id)); } }
function __construct($ctn) { parent::__construct($ctn); }