PageRenderTime 54ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/admin/classes/controller/adminmodule.php

https://bitbucket.org/seyar/ari100krat.local
PHP | 32 lines | 23 code | 8 blank | 1 comment | 0 complexity | b54fdb8ec772fa0b2a06276b6f87a0c6 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?php
  2. defined('SYSPATH') OR die('No direct access allowed.');
  3. abstract class Controller_AdminModule extends Controller_Admin
  4. {
  5. public $auto_wrapper = TRUE;
  6. public function before()
  7. {
  8. parent::before();
  9. define('MODULE_NAME',$this->module_name);
  10. // $this->request->controller = Request::instance()->controller . '/';
  11. }
  12. public function ajax_echo()
  13. {
  14. $this->after();
  15. echo $this->request->response['content'];
  16. exit;
  17. }
  18. public function after()
  19. {
  20. parent::after();
  21. $this->template->admin_templates = Kohana::config('admin')->path;
  22. $this->template->template_dir = Kohana::config( strtolower(MODULE_NAME))->path;
  23. }
  24. }