From b0dd10f8171945e0c1f3527dd1e9d18b043e01a7 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 25 Aug 2006 17:25:49 +0000 Subject: Initial Import --- user_guide/installation/upgrade_130.html | 209 +++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 user_guide/installation/upgrade_130.html (limited to 'user_guide/installation/upgrade_130.html') diff --git a/user_guide/installation/upgrade_130.html b/user_guide/installation/upgrade_130.html new file mode 100644 index 000000000..41de13e75 --- /dev/null +++ b/user_guide/installation/upgrade_130.html @@ -0,0 +1,209 @@ + + + + +Code Igniter User Guide + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +

Code Igniter User Guide Version 1.4.0

+
+ + + + + + + + + +
+ + +
+ + + +
+ +

Upgrading from 1.2 to 1.3

+ +

Note: The instructions on this page assume you are running version 1.2. If you +have not upgraded to that version please do so first.

+ + +

Before performing an update you should take your site offline by replacing the index.php file +with a static one.

+ + +

Step 1: Update your Code Igniter files

+ +

Replace the following directories in your "system" folder with the new versions:

+ +

Note: If you have any custom developed files in these folders please make copies of them first.

+ + + + +

Step 2: Update your error files

+ +

Version 1.3 contains two new error templates located in application/errors, and for naming consistency the other error templates have +been renamed.

+ +

If you have not customized any of the error templates simply +replace this folder:

+ + + +

If you have customized your error templates, rename them as follows:

+ + + + + +

Step 3: Update your index.php file

+ +

Please open your main index.php file (located at your root). At the very bottom of the file, change this:

+ +require_once BASEPATH.'libraries/Front_controller'.EXT; + +

To this:

+ +require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; + + +

Step 4: Update your config.php file

+ +

Open your application/config/config.php file and add these new items:

+ +
+/*
+|------------------------------------------------
+| URL suffix
+|------------------------------------------------
+|
+| This option allows you to add a suffix to all URLs.
+| For example, if a URL is this:
+|
+| www.your-site.com/index.php/products/view/shoes
+| 
+| You can optionally add a suffix, like ".html",
+| making the page appear to be of a certain type:
+|
+| www.your-site.com/index.php/products/view/shoes.html
+|
+*/
+$config['url_suffix'] = "";
+
+
+/*
+|------------------------------------------------
+| Enable Query Strings
+|------------------------------------------------
+|
+| By default Code Igniter uses search-engine and 
+| human-friendly segment based URLs:
+|
+| www.your-site.com/who/what/where/
+|
+| You can optionally enable standard query string
+| based URLs:
+|
+| www.your-site.com?who=me&what=something&where=here
+|
+| Options are: TRUE or FALSE (boolean)
+|
+| The two other items let you set the query string "words"
+| that will invoke your controllers and functions:
+| www.your-site.com/index.php?c=controller&m=function
+|
+*/
+$config['enable_query_strings'] = FALSE;
+$config['controller_trigger'] = 'c';
+$config['function_trigger'] = 'm';
+
+ + +

Step 5: Update your database.php file

+ +

Open your application/config/database.php file and add these new items:

+ +
+$db['default']['dbprefix'] = "";
+$db['default']['active_r'] = TRUE;
+
+ + +

Step 6: Update your user guide

+ +

Please also replace your local copy of the user guide with the new version.

+ +
+ + + + + + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b