/application/modules/home/controllers/admin.php
PHP | 42 lines | 26 code | 10 blank | 6 comment | 1 complexity | 222dc0cba89e7c988a6a76eb8c71016e MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0
- <?php
- if (!defined('BASEPATH'))
- exit('No direct script access allowed');
- class Admin extends Base_Controller
- {
- function __construct()
- {
- parent::__construct();
- //$this->template->write_view('banner', 'common/banner', array( ) );
- //$theme = 'home';
- //$this->template->set_master_template( $theme .'/template' );
- }
- public function index()
- {
- $this -> template -> write_view('sheet', 'home/admin_index', array());
- $this -> template -> render($region = NULL, $buffer = FALSE, $parse = FALSE);
- }
- public function paths()
- {
- echo '<pre>';
- print_r($_SERVER);
- echo '</pre>';
- }
-
- public function clearcache()
- {
- $this->maintaincache->all();
- echo "Cache Cleared";
- //$this->index();
- }
- }
- /* End of file welcome.php */
- /* Location: ./application/controllers/welcome.php */