diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-07-05 01:54:32 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-07-05 01:54:32 +0200 |
commit | c644128fdd49a47d791240e0e38b54cd22412bc5 (patch) | |
tree | fd2135d295c103395f5d0bd89056b0e798cfcdb3 /user_guide/general/views.html | |
parent | 691010e72ec7fb4a05740332a10b5f046a82c666 (diff) |
fixed validation errors... about a zillion of em.
Diffstat (limited to 'user_guide/general/views.html')
-rw-r--r-- | user_guide/general/views.html | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/user_guide/general/views.html b/user_guide/general/views.html index 8adfc6736..737146dbb 100644 --- a/user_guide/general/views.html +++ b/user_guide/general/views.html @@ -77,14 +77,14 @@ you should do so before continuing.</p> <p>Using your text editor, create a file called <dfn>blogview.php</dfn>, and put this in it:</p>
<textarea class="textarea" style="width:100%" cols="50" rows="10">
-<html>
-<head>
-<title>My Blog</title>
-</head>
-<body>
- <h1>Welcome to my Blog!</h1>
-</body>
-</html>
+<html>
+<head>
+<title>My Blog</title>
+</head>
+<body>
+ <h1>Welcome to my Blog!</h1>
+</body>
+</html>
</textarea>
<p>Then save the file in your <dfn>application/views/</dfn> folder.</p>
@@ -169,14 +169,14 @@ class Blog extends Controller { <textarea class="textarea" style="width:100%" cols="50" rows="10">
-<html>
-<head>
-<title><?=$title;?></title>
-</head>
-<body>
- <h1><?=$heading;?></h1>
-</body>
-</html>
+<html>
+<head>
+<title><?php echo $title;?></title>
+</head>
+<body>
+ <h1><?php echo $heading;?></h1>
+</body>
+</html>
</textarea>
<p>Then load the page at the URL you've been using and you should see the variables replaced.</p>
@@ -214,26 +214,26 @@ class Blog extends Controller { <textarea class="textarea" style="width:100%" cols="50" rows="24">
-<html>
-<head>
-<title><?=$title;?></title>
-</head>
-<body>
-<h1><?=$heading;?></h1>
+<html>
+<head>
+<title><?=$title;?></title>
+</head>
+<body>
+<h1><?=$heading;?></h1>
-<h3>My Todo List</h3>
+<h3>My Todo List</h3>
-<ul>
-<?php foreach($todo_list as $item):?>
+<ul>
+<?php foreach($todo_list as $item):?>
-<li><?=$item;?></li>
+<li><?=$item;?></li>
-<?php endforeach;?>
-</ul>
+<?php endforeach;?>
+</ul>
-</body>
-</html>
+</body>
+</html>
</textarea>
@@ -249,7 +249,7 @@ Previous Topic: <a href="controllers.html">Controllers</a> <a href="#top">Top of Page</a> ·
<a href="../index.html">User Guide Home</a> ·
Next Topic: <a href="models.html">Models</a>
-<p>
+</p>
<p><a href="http://www.codeigniter.com">CodeIgniter</a> · Copyright © 2007 · <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
</div>
|