From 325197e700564f8e4e0ba7c9fc82abfd85f451b0 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Mon, 20 Nov 2006 17:29:05 +0000 Subject: --- user_guide/general/caching.html | 2 +- user_guide/general/core_classes.html | 8 ++++++++ user_guide/general/views.html | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'user_guide/general') diff --git a/user_guide/general/caching.html b/user_guide/general/caching.html index b4b3dab73..f62c53db9 100644 --- a/user_guide/general/caching.html +++ b/user_guide/general/caching.html @@ -94,7 +94,7 @@ most logical to you. Once the tag is in place, your pages will begin being cache

Deleting Caches

-

If you no longer wish to cache a file you can remove the caching tag and it will not longer be refreshed when it expires. Note: +

If you no longer wish to cache a file you can remove the caching tag and it will no longer be refreshed when it expires. Note: Removing the tag will not delete the cache immediately. It will have to expire normally. If you need to remove it earlier you will need to manually delete it from your cache folder.

diff --git a/user_guide/general/core_classes.html b/user_guide/general/core_classes.html index f7e308acd..92c35c706 100644 --- a/user_guide/general/core_classes.html +++ b/user_guide/general/core_classes.html @@ -144,6 +144,14 @@ class MY_Input extends CI_Input {
This allows you to substantially alter the Code Igniter core.

+

Setting Your Own Prefix

+ +

To set your own sub-class prefix, open your application/config/config.php file and look for this item:

+ +$config['subclass_prefix'] = 'MY_'; + +

Please note that all native Code Igniter libraries are prefixed with CI_ so DO NOT use that as your prefix.

+ diff --git a/user_guide/general/views.html b/user_guide/general/views.html index 147667ce2..fa7f5eb78 100644 --- a/user_guide/general/views.html +++ b/user_guide/general/views.html @@ -97,6 +97,7 @@ you should do so before continuing.

Where name is the name of your view file. Note: The .php file extension does not need to be specified unless you use something other then .php.

+

Now, open the controller file you made earlier called blog.php, and replace the echo statement with the view loading function:

@@ -117,6 +118,13 @@ class Blog extends Controller { www.your-site.com/index.php/blog/ +

Storing Views within Sub-folders

+ +

Your view files can also be stored within sub-folders if you prefer that type of organization. When doing so you will need +to include the folder name loading the view. Example:

+ +$this->load->view('folder_name/file_name'); +

Adding Dynamic Data to the View

-- cgit v1.2.3-24-g4f1b