public function __CONSTRUCT() { parent::__CONSTRUCT(); $this->loadModel('customer', 'crm'); $this->loadModel('contact', 'crm'); $this->loadModel('resume', 'crm'); }
public function __CONSTRUCT() { parent::__CONSTRUCT(); $this->app->loadClass('pager', $static = true); $pager = new pager(0, 8, 1); $this->view->latestArticles = $this->loadModel('article', 'sys')->getList('blog', 0, null, null, 'id_desc'); $this->view->authors = $this->loadModel('article', 'sys')->getAuthorList('blog'); $this->view->months = $this->loadModel('article', 'sys')->getMonthList('blog'); $this->view->tags = array_unique($this->loadModel('article', 'sys')->getTagList('blog')); $this->view->latestComments = $this->loadModel('message', 'sys')->getList('comment', 'blog', ''); }