[eluser]riwakawd[/eluser]
[quote author="InsiteFX" date="1397994067"]Most od the CI directories are read only see the .htaccess files in the directory to see why
[/quote]
How would you get the theme from folder. In select form.
At the moment I just have to change the name each time want to choose different theme
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Set Website Title
$config['getTitle'] = 'Your | Store';
// Template Change
$config['config_template'] = 'codeigniter';
?>
It would be easier if I can just choose from a drop down list from my views/theme
I have a settings.php controller which is in my admin area where function set_theme() is. Just something like opencarts theme selection area.
this is what is in my home.php controller index
Code:
if (file_exists(APPPATH.'views/theme/'.$this->config->item('config_template').'/template/common/home.tpl')) {
return $this->load->view('theme/'.$this->config->item('config_template').'/template/common/home.tpl', $data);
} else {
return $this->load->view('theme/'.'default/template/common/home.tpl', $data);
}