PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/application/modules/home/controllers/admin.php

https://bitbucket.org/matyhaty/senses-designertravelv3
PHP | 42 lines | 26 code | 10 blank | 6 comment | 1 complexity | 222dc0cba89e7c988a6a76eb8c71016e MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0
  1. <?php
  2. if (!defined('BASEPATH'))
  3. exit('No direct script access allowed');
  4. class Admin extends Base_Controller
  5. {
  6. function __construct()
  7. {
  8. parent::__construct();
  9. //$this->template->write_view('banner', 'common/banner', array( ) );
  10. //$theme = 'home';
  11. //$this->template->set_master_template( $theme .'/template' );
  12. }
  13. public function index()
  14. {
  15. $this -> template -> write_view('sheet', 'home/admin_index', array());
  16. $this -> template -> render($region = NULL, $buffer = FALSE, $parse = FALSE);
  17. }
  18. public function paths()
  19. {
  20. echo '<pre>';
  21. print_r($_SERVER);
  22. echo '</pre>';
  23. }
  24. public function clearcache()
  25. {
  26. $this->maintaincache->all();
  27. echo "Cache Cleared";
  28. //$this->index();
  29. }
  30. }
  31. /* End of file welcome.php */
  32. /* Location: ./application/controllers/welcome.php */