diff options
-rw-r--r-- | user_guide/general/helpers.html | 2 | ||||
-rw-r--r-- | user_guide/libraries/benchmark.html | 4 | ||||
-rw-r--r-- | user_guide/libraries/file_uploading.html | 8 | ||||
-rw-r--r-- | user_guide/libraries/validation.html | 46 |
4 files changed, 30 insertions, 30 deletions
diff --git a/user_guide/general/helpers.html b/user_guide/general/helpers.html index 5569d9834..6d443b95f 100644 --- a/user_guide/general/helpers.html +++ b/user_guide/general/helpers.html @@ -111,7 +111,7 @@ This is done by opening the <var>application/config/autoload.php</var> file and <p>For example, to create a link using the <dfn>anchor()</dfn> function in one of your view files you would do this:</p>
-<code><?=anchor('blog/comments', 'Click Here');?></code>
+<code><?php echo anchor('blog/comments', 'Click Here');?></code>
<p>Where "Click Here" is the name of the link, and "blog/comments" is the URI to the controller/function you wish to link to.</p>
diff --git a/user_guide/libraries/benchmark.html b/user_guide/libraries/benchmark.html index 4afa58bc3..177bbc7ba 100644 --- a/user_guide/libraries/benchmark.html +++ b/user_guide/libraries/benchmark.html @@ -151,7 +151,7 @@ $this->benchmark->mark('another_mark<kbd>_end</kbd>'); <p>If you would like to display the total elapsed time from the moment CodeIgniter starts to the moment the final output
is sent to the browser, simply place this in one of your view templates:</p>
-<code><?=$this->benchmark->elapsed_time();?></code>
+<code><?php echo $this->benchmark->elapsed_time();?></code>
<p>You'll notice that it's the same function used in the examples above to calculate the time between two point, except you are
<strong>not</strong> using any parameters. When the parameters are absent, CodeIgniter does not stop the benchmark until right before the final
@@ -169,7 +169,7 @@ functions you must set your own start/end points.</p> <p>If your PHP installation is configured with --enable-memory-limit, you can display the amount of memory consumed by the entire
system using the following code in one of your view file:</p>
-<code><?=$this->benchmark->memory_usage();?></code>
+<code><?php echo $this->benchmark->memory_usage();?></code>
<p>Note: This function can only be used in your view files. The consumption will reflect the total memory used by the entire app.</p>
<p>An alternate way to show your memory usage in your view files is to use this pseudo-variable, if you prefer not to use the pure PHP:</p>
diff --git a/user_guide/libraries/file_uploading.html b/user_guide/libraries/file_uploading.html index 4f8b7466f..a26a7e38f 100644 --- a/user_guide/libraries/file_uploading.html +++ b/user_guide/libraries/file_uploading.html @@ -91,9 +91,9 @@ folder:</p> </head>
<body>
-<?=$error;?>
+<?php echo $error;?>
-<?=form_open_multipart('upload/do_upload'); ?>
+<?php echo form_open_multipart('upload/do_upload');?>
<input type="file" name="userfile" size="20" />
@@ -126,11 +126,11 @@ In it, place this code and save it to your <samp>applications/views/</samp> fold <ul>
<?php foreach($upload_data as $item => $value):?>
-<li><?=$item;?>: <?=$value;?></li>
+<li><?php echo $item;?>: <?php echo $value;?></li>
<?php endforeach; ?>
</ul>
-<p><?=anchor('upload', 'Upload Another File!'); ?></p>
+<p><?php echo anchor('upload', 'Upload Another File!'); ?></p>
</body>
</html></textarea>
diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index 06ab665ca..815b542be 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -110,9 +110,9 @@ folder:</p> </head>
<body>
-<?=$this->validation->error_string; ?>
+<?php echo $this->validation->error_string; ?>
-<?=form_open('form'); ?>
+<?php echo form_open('form'); ?>
<h5>Username</h5>
<input type="text" name="username" value="" size="50" />
@@ -151,7 +151,7 @@ folder:</p> <h3>Your form was successfully submitted!</h3>
-<p><?=anchor('form', 'Try it again!'); ?></p>
+<p><?php echo anchor('form', 'Try it again!'); ?></p>
</body>
</html>
@@ -210,7 +210,7 @@ is that it generates the action URL for you, based on the URL in your config fil and flexible in the event your URLs change.</li>
<li>At the top of the form you'll notice the following variable:
-<code><?=$this->validation->error_string; ?></code>
+<code><?php echo $this->validation->error_string; ?></code>
<p>This variable will display any error messages sent back by the validator. If there are no messages it returns nothing.</p>
</li>
@@ -456,21 +456,21 @@ error message.</p> </head>
<body>
-<?=$this->validation->error_string; ?>
+<?php echo $this->validation->error_string; ?>
-<?=form_open('form'); ?>
+<?php echo form_open('form'); ?>
<h5>Username</h5>
-<input type="text" name="username" value="<?=$this->validation->username;?>" size="50" />
+<input type="text" name="username" value="<?php echo $this->validation->username;?>" size="50" />
<h5>Password</h5>
-<input type="text" name="password" value="<?=$this->validation->password;?>" size="50" />
+<input type="text" name="password" value="<?php echo $this->validation->password;?>" size="50" />
<h5>Password Confirm</h5>
-<input type="text" name="passconf" value="<?=$this->validation->passconf;?>" size="50" />
+<input type="text" name="passconf" value="<?php echo $this->validation->passconf;?>" size="50" />
<h5>Email Address</h5>
-<input type="text" name="email" value="<?=$this->validation->email;?>" size="50" />
+<input type="text" name="email" value="<?php echo $this->validation->email;?>" size="50" />
<div><input type="submit" value="Submit" /></div>
@@ -493,20 +493,20 @@ and the error messages will contain a more relevant field name.</p> <textarea class="textarea" style="width:100%" cols="50" rows="20">
<h5>Username</h5>
-<?=$this->validation->username_error; ?>
-<input type="text" name="username" value="<?=$this->validation->username;?>" size="50" />
+<?php echo $this->validation->username_error; ?>
+<input type="text" name="username" value="<?php echo $this->validation->username;?>" size="50" />
<h5>Password</h5>
-<?=$this->validation->password_error; ?>
-<input type="text" name="password" value="<?=$this->validation->password;?>" size="50" />
+<?php echo $this->validation->password_error; ?>
+<input type="text" name="password" value="<?php echo $this->validation->password;?>" size="50" />
<h5>Password Confirm</h5>
-<?=$this->validation->passconf_error; ?>
-<input type="text" name="passconf" value="<?=$this->validation->passconf;?>" size="50" />
+<?php echo $this->validation->passconf_error; ?>
+<input type="text" name="passconf" value="<?php echo $this->validation->passconf;?>" size="50" />
<h5>Email Address</h5>
-<?=$this->validation->email_error; ?>
-<input type="text" name="email" value="<?=$this->validation->email;?>" size="50" /></textarea>
+<?php echo $this->validation->email_error; ?>
+<input type="text" name="email" value="<?php echo $this->validation->email;?>" size="50" /></textarea>
<p>If there are no errors, nothing will be shown. If there is an error, the message will appear, wrapped in the delimiters you
have set (<p> tags by default).</p>
@@ -686,9 +686,9 @@ each item. Example:</p> <code>
<select name="myselect"><br />
-<option value="one" <dfn><?= $this->validation->set_select('myselect', 'one'); ?></dfn> >One</option><br />
-<option value="two" <dfn><?= $this->validation->set_select('myselect', 'two'); ?></dfn> >Two</option><br />
-<option value="three" <dfn><?= $this->validation->set_select('myselect', 'three'); ?></dfn> >Three</option><br />
+<option value="one" <dfn><?php echo $this->validation->set_select('myselect', 'one'); ?></dfn> >One</option><br />
+<option value="two" <dfn><?php echo $this->validation->set_select('myselect', 'two'); ?></dfn> >Two</option><br />
+<option value="three" <dfn><?php echo $this->validation->set_select('myselect', 'three'); ?></dfn> >Three</option><br />
</select>
</code>
@@ -698,7 +698,7 @@ each item. Example:</p> <p>Permits you to display a checkbox in the state it was submitted. The first parameter
must contain the name of the checkbox, the second parameter must contain its value. Example:</p>
-<code><input type="checkbox" name="mycheck" value="1" <dfn><?= $this->validation->set_checkbox('mycheck', '1'); ?></dfn> /></code>
+<code><input type="checkbox" name="mycheck" value="1" <dfn><?php echo $this->validation->set_checkbox('mycheck', '1'); ?></dfn> /></code>
<h2>set_radio()</h2>
@@ -706,7 +706,7 @@ must contain the name of the checkbox, the second parameter must contain its val <p>Permits you to display radio buttons in the state they were submitted. The first parameter
must contain the name of the radio button, the second parameter must contain its value. Example:</p>
-<code><input type="radio" name="myradio" value="1" <dfn><?= $this->validation->set_radio('myradio', '1'); ?></dfn> /></code>
+<code><input type="radio" name="myradio" value="1" <dfn><?php echo $this->validation->set_radio('myradio', '1'); ?></dfn> /></code>
|