/modules/admin/classes/controller/adminmodule.php
PHP | 32 lines | 23 code | 8 blank | 1 comment | 0 complexity | b54fdb8ec772fa0b2a06276b6f87a0c6 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?php
- defined('SYSPATH') OR die('No direct access allowed.');
- abstract class Controller_AdminModule extends Controller_Admin
- {
- public $auto_wrapper = TRUE;
- public function before()
- {
- parent::before();
- define('MODULE_NAME',$this->module_name);
- // $this->request->controller = Request::instance()->controller . '/';
- }
- public function ajax_echo()
- {
- $this->after();
- echo $this->request->response['content'];
- exit;
- }
- public function after()
- {
- parent::after();
-
- $this->template->admin_templates = Kohana::config('admin')->path;
- $this->template->template_dir = Kohana::config( strtolower(MODULE_NAME))->path;
- }
- }