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.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index 107446946..8f317109e 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -109,12 +109,12 @@ class Blog extends Controller {
</textarea>
-<p>If you visit the your site using the URL you did earlier you should see your new view. The URL was similar to this:</p>
+<p>If you visit your site using the URL you did earlier you should see your new view. The URL was similar to this:</p>
<code>example.com/index.php/<var>blog</var>/</code>
<h2>Loading multiple views</h2>
-<p>CodeIgniter will intelligently handle multiple calls to $this-&gt;load-&gt;view from within a controller. If more then one call happens they will be appended together. For example, you may wish to have a header view, a menu view, a content view, and a footer view. That might look something like this:</p>
+<p>CodeIgniter will intelligently handle multiple calls to $this-&gt;load-&gt;view from within a controller. If more than one call happens they will be appended together. For example, you may wish to have a header view, a menu view, a content view, and a footer view. That might look something like this:</p>
<p><code>&lt;?php<br />
<br />
class Page extends Controller {<br /><br />
@@ -169,7 +169,7 @@ class Blog extends Controller {
{
$data['title'] = "My Real Title";
$data['heading'] = "My Real Heading";
-
+
$this->load->view('blogview', $data);
}
}
@@ -211,7 +211,7 @@ class Blog extends Controller {
$data['title'] = "My Real Title";
$data['heading'] = "My Real Heading";
-
+
$this->load->view('blogview', $data);
}
}
@@ -229,8 +229,8 @@ class Blog extends Controller {
&lt;/head>
&lt;body>
&lt;h1>&lt;?php echo $heading;?>&lt;/h1>
-
-&lt;h3>My Todo List&lt;/h3>
+
+&lt;h3>My Todo List&lt;/h3>
&lt;ul>
&lt;?php foreach($todo_list as $item):?>
@@ -239,7 +239,7 @@ class Blog extends Controller {
&lt;?php endforeach;?>
&lt;/ul>
-
+
&lt;/body>
&lt;/html>
</textarea>