public function single_moduleAction()
 {
     $this->permission('index');
     $this->language->load("modules");
     $model = new \modules\store\models\Modules();
     $model->_select = "module_id, name, code, status";
     return $this->render('modules_store/single_module', ['items' => $model->get()]);
 }
Exemplo n.º 2
0
 public function indexAction($offset = 0)
 {
     $this->permission('index');
     $this->language->load("modules");
     $model = new \modules\store\models\Modules();
     $model->_select = "module_id, name, raw_name, status";
     $this->load->library('pagination');
     $model->_offset = $offset;
     $model->_limit = $this->config->get('limit');
     $config = ['url' => Uri_helper::url('management/blog_categories/index'), 'total' => $model->get(true), 'limit' => $model->_limit, 'offset' => $model->_offset];
     return $this->render('modules/index', ['items' => $model->get(), 'pagination' => $this->Pagination->generate($config)]);
 }