public function display($tmpl = 'default') { $model = $this->getModel(); //Päätellään, mitä tietoa halutaan mallilta hakea $this->data = $model->data; parent::display($tmpl); }
public function display($tmpl = null) { $model = $this->getModel(); $this->confwritable = $model->isConfigurationWriteable(); $this->dpengineselected = $model->isDbSelected(); $conf_array = $model->getConfiguration(); $this->databasedriver = $conf_array['database']['databasedriver']; $this->databasehost = $conf_array['database']['databasehost']; $this->database = $conf_array['database']['database']; $this->dbuser = $conf_array['database']['dbuser']; $this->dbpass = $conf_array['database']['dbpass']; $this->connected = $model->getConnected(); $this->errors = $model->getErrors(); $this->issomeuserinstalled = $model->getSomeuserStatus(); if ($this->issomeuserinstalled) { $this->someuserstatus = 'SomeUser table is installed'; $this->someuseraction = '<span class="greenok">No action required.</span>'; } else { $this->someuserstatus = 'SomeUser table is NOT installed'; $this->someuseraction = '<a href="index.php?app=configuration&cntr=install&view=install&table=someuser"><span class="redfail">INSTALL</span></a>'; } $this->issomesessioninstalled = $model->getSomesessionStatus(); if ($this->issomesessioninstalled) { $this->somesessionstatus = 'Somesession table is installed'; $this->somesessionaction = '<span class="greenok">No action required.</span>'; } else { $this->somesessionstatus = 'Somesession table is NOT installed'; $this->somesessionaction = '<a href="index.php?app=configuration&cntr=install&view=install&table=somesession"><span class="redfail">INSTALL</span></a>'; } parent::display($tmpl); }
public function display($tpl = 'default') { $model = $this->getModel(); //$model = $this->_model; $this->carray = $model->getConfarray(); parent::display($tpl); }
public function display($tmpl = null) { $model = $this->getModel(); # # set values here to this, example $this->date = date('d.m.Y H:i:s'); # $this->date = date('d.m.Y H:i:s'); //must call parent display with $tmpl parent::display($tmpl); }
public function display($tmpl = null) { $model = $this->getModel(); # # set values here to this, example $this->date = date('d.m.Y H:i:s'); # $this->date = date('d.m.Y H:i:s'); $this->userdata = $model->getUserdata(); $this->errors = $model->getErrors(); //for the form, unset those values that have no errors. We will not put those to form again. foreach ($this->errors as $k => $estr) { if (isset($this->userdata[$k])) { unset($this->userdata[$k]); } } //must call parent display with $tmpl parent::display($tmpl); }
public function display($tmpl = null) { $model = $this->getModel(); parent::display($tmpl); }
public function display($tpl = 'default') { $model = $this->getModel(); $this->errors = $model->getErrors(); parent::display($tpl); }
public function display($tmpl = null) { parent::display('userlist'); }
protected function postgres() { // need info from model. parent::display('postgres'); }