summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-21 23:35:37 +0200
committerGreg Aker <greg@gregaker.net>2011-08-21 23:35:37 +0200
commit60051f273a4f34f679e7d2627dc7af7f130ac102 (patch)
tree9c3f806ea48beda7272b33bf66f17b8fde7c32c5 /index.php
parentee7363bb48e613d17566e82c6025ad71d39aa104 (diff)
parent644ed9000c39289a66d8b52f10d54168f006b717 (diff)
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop
Diffstat (limited to 'index.php')
-rw-r--r--index.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/index.php b/index.php
index 899f4ce9b..c50cfed43 100644
--- a/index.php
+++ b/index.php
@@ -73,6 +73,23 @@ if (defined('ENVIRONMENT'))
*
*/
$application_folder = 'application';
+
+/*
+ *---------------------------------------------------------------
+ * VIEW FOLDER NAME
+ *---------------------------------------------------------------
+ *
+ * If you want to move the view folder out of the application
+ * folder set the path to the folder here. The folder can be renamed
+ * and relocated anywhere on your server. If blank, it will default
+ * to the standard location inside your application folder. If you
+ * do move this, use the full server path to this folder
+ *
+ * NO TRAILING SLASH!
+ *
+ */
+ $view_folder = '';
+
/*
* --------------------------------------------------------------------
@@ -190,6 +207,22 @@ if (defined('ENVIRONMENT'))
define('APPPATH', BASEPATH.$application_folder.'/');
}
+
+ // The path to the "views" folder
+ if (is_dir($view_folder))
+ {
+ define ('VIEWPATH', $view_folder .'/');
+ }
+ else
+ {
+ if ( ! is_dir(APPPATH.'views/'))
+ {
+ exit("Your view folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
+ }
+
+ define ('VIEWPATH', APPPATH.'views/' );
+ }
+
/*
* --------------------------------------------------------------------