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/views.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'user_guide/general/views.html') 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