[eluser]xwero[/eluser]
Yes you have to change the loader class and the index.php to do it.
index.php (from line 78)
Code:
/*
|---------------------------------------------------------------
| DEFINE APPLICATION CONSTANTS
|---------------------------------------------------------------
|
| EXT - The file extension. Typically ".php"
| FCPATH - The full server path to THIS file
| SELF - The name of THIS file (typically "index.php)
| BASEPATH - The full server path to the "system" folder
| APPPATH - The full server path to the "application" folder
| PUBPATH - The root directory of the public files
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', $system_folder.'/');
define('PUBPATH',realpath(dirname(__FILE__)));
PUBPATH is added.
system/libraries/Loader.php (line 55)
change
Code:
$this->_ci_view_path = APPPATH.'views/';
to
Code:
$this->_ci_view_path = PUBPATH.'views/';