summaryrefslogtreecommitdiffstats
path: root/user_guide/general/views.html
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/general/views.html')
-rw-r--r--user_guide/general/views.html8
1 files changed, 8 insertions, 0 deletions
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.</p>
<p>Where <var>name</var> is the name of your view file. Note: The .php file extension does not need to be specified unless you use something other then <kbd>.php</kbd>.</p>
+
<p>Now, open the controller file you made earlier called <dfn>blog.php</dfn>, and replace the echo statement with the view loading function:</p>
@@ -117,6 +118,13 @@ class Blog extends Controller {
<code>www.your-site.com/index.php/<var>blog</var>/</code>
+<h2>Storing Views within Sub-folders</h2>
+
+<p>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:</p>
+
+<code>$this->load->view('<kbd>folder_name</kbd>/<var>file_name</var>');</code>
+
<h2>Adding Dynamic Data to the View</h2>