Example #1
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->load->model('module/kbm');
     $this->model = $this->model_module_kbm;
     self::$__ = $this->getLanguages();
     // Resources
     $this->document->addStyle('view/kulercore/css/kulercore.css');
     $this->document->addStyle('view/kulercore/css/kbm.css');
     $this->document->addScript('view/kulercore/js/handlebars.js');
     // Vars
     $this->master_data['token'] = $this->session->data['token'];
     $this->master_data['catalog_base'] = $this->model->getCatalogBase();
     // Breadcrumb
     $this->master_data['breadcrumbs'] = array();
     $this->master_data['breadcrumbs'][] = array('text' => $this->language->get('text_home'), 'href' => $this->helperLink('common/home'), 'separator' => false);
     $this->master_data['breadcrumbs'][] = array('text' => $this->language->get('text_module'), 'href' => $this->helperLink('extension/module'), 'separator' => ' :: ');
     $this->master_data['breadcrumbs'][] = array('text' => $this->language->get('heading_module_title'), 'href' => $this->helperLink('module/kbm'), 'separator' => ' :: ');
     // Navigation
     $this->master_data['home_url'] = $this->helperLink('module/kbm');
     $this->master_data['article_url'] = $this->helperLink('module/kbm/article');
     $this->master_data['category_url'] = $this->helperLink('module/kbm/category');
     $this->master_data['comment_url'] = $this->helperLink('module/kbm/comment');
     $this->master_data['author_url'] = $this->helperLink('module/kbm/author');
     $this->master_data['setting_url'] = $this->helperLink('module/kbm/setting');
 }
Example #2
0
 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->load->model('module/kbm');
     $this->model = $this->model_module_kbm;
     // Language
     self::$__ = $this->language->load('module/kbm');
     ModelKulerCommon::loadTexts(self::$__);
     // Breadcrumb
     $home_title = $this->model->getSetting('home', 'blog_name');
     $this->data['breadcrumbs'] = array();
     $this->data['breadcrumbs'][] = array('text' => $this->language->get('text_home'), 'href' => $this->model->link('common/home'), 'separator' => false);
     $this->data['breadcrumbs'][] = array('text' => $home_title, 'href' => $this->model->link('module/kbm'), 'separator' => false);
 }