summaryrefslogtreecommitdiffstats
path: root/user_guide/general/views.html
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2010-11-04 22:59:52 +0100
committerPascal Kriete <pascal.kriete@ellislab.com>2010-11-04 22:59:52 +0100
commite917f9be8b05c81357c1c2c9730d5060685d644d (patch)
treeb6a7d5ce8ba57b69ba61454f77829b04f2ce5974 /user_guide/general/views.html
parent5b2d2da5ae2e97043c6bef53e565d30e50196e2b (diff)
parente1f6e9ddff788f6a154f5f35dc117d14aeb0c484 (diff)
Automated merge with http://hg.ellislab.com/CodeIgniter2
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>