assorted guide fixes and additions
diff --git a/user_guide/general/views.html b/user_guide/general/views.html
index e41503f..851da92 100644
--- a/user_guide/general/views.html
+++ b/user_guide/general/views.html
@@ -162,7 +162,7 @@
<p>Let's try it with your controller file. Open it add this code:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="14">
-<?php
+<?php
class Blog extends Controller {
function index()
@@ -173,7 +173,7 @@
$this->load->view('blogview', $data);
}
}
-?>
+?>
</textarea>
@@ -193,9 +193,6 @@
<p>Then load the page at the URL you've been using and you should see the variables replaced.</p>
-<p><strong>Note:</strong> You'll notice that in the example above we are using PHP's alternative syntax. If you
-are not familiar with it you can read about it <a href="alternative_php.html">here</a>.</p>
-
<h2>Creating Loops</h2>
<p>The data array you pass to your view files is not limited to simple variables. You can
@@ -205,7 +202,7 @@
<p>Here's a simple example. Add this to your controller:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="17">
-<?php
+<?php
class Blog extends Controller {
function index()
@@ -218,7 +215,7 @@
$this->load->view('blogview', $data);
}
}
-?>
+?>
</textarea>
@@ -242,12 +239,12 @@
<?php endforeach;?>
</ul>
-
</body>
</html>
</textarea>
-
+<p><strong>Note:</strong> You'll notice that in the example above we are using PHP's alternative syntax. If you
+are not familiar with it you can read about it <a href="alternative_php.html">here</a>.</p>
</div>