Quote:**put the code in application/core and name as MY_Loader.php
<?php class MY_Loader extends CI_Loader{ public $theme = 'default'; public function __construct() { parent::__construct(); $this->set_theme($this->theme); } public function set_theme($theme_name) { $this->theme = $theme_name; $this->_ci_view_paths = array(FCPATH.'themes/'. $this->theme .'/views/' => TRUE); } }