I am trying to set up my codeIgniter files to look like this and a place where can enter database details and then it connects it to website. You will have to adjust some files there will be a startup file in systems folder Allow your self a few days.
You will most likely need to write a few new code for [login to view URL] so can pick up the default template files. And few other which not sure of.
application > models
application > controllers
application > controllers > common > [login to view URL]
application > controllers > common > [login to view URL]
application > controllers > common > [login to view URL]
application > language > english
application > language > english > common > [login to view URL]
application > language > english > common > [login to view URL]
application > language > english > common > [login to view URL]
application > view
application > view > theme > default
application > view > theme > default > template
application > view > theme > default > template > common
application > view > theme > default > template > common > [login to view URL]
application > view > theme > default > template > common > [login to view URL]
application > view > theme > default > template > common > [login to view URL]
[login to view URL]
the core and config folders would be moved into system > engine folder.
system >
system > engine
system > all other system folders would be still in system folder.
Each controller file would have something like this at bottom of code.
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/[login to view URL]')) {
$this->template = $this->config->get('config_template') . '/template/common/[login to view URL]';
} else {
$this->template = 'default/template/common/[login to view URL]';
}