diff options
author | admin <devnull@localhost> | 2006-10-31 01:36:32 +0100 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-31 01:36:32 +0100 |
commit | b93464db656fe017fe434b0fc917921ded88a12c (patch) | |
tree | 1ed24c1542b206a424e0b88e08f64a7932e31826 /user_guide/general | |
parent | 784add749c806c52327615d47b8c6fabe2bd3438 (diff) |
Diffstat (limited to 'user_guide/general')
-rw-r--r-- | user_guide/general/alternative_php.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/user_guide/general/alternative_php.html b/user_guide/general/alternative_php.html index 888123ed0..2018bf26b 100644 --- a/user_guide/general/alternative_php.html +++ b/user_guide/general/alternative_php.html @@ -63,15 +63,21 @@ Alternate PHP Syntax <h1>Alternate PHP Syntax for View Files</h1>
<p>If you do not utilize Code Igniter's <a href="../libraries/parser.html">template engine</a>, you'll be using pure PHP
-in your View files. To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use PHPs alternative
-syntax for control structures and echo statements. If you are not familiar with this syntax, it allows you to eliminate the braces from your code,
+in your View files. To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use
+PHPs alternative syntax for control structures and short tag echo statements. If you are not familiar with this syntax, it allows you to eliminate the braces from your code,
and eliminate "echo" statements.</p>
-<p class="important"><strong>Note:</strong> If you find that the syntax described in this page does not work on your server it might
+<h2>Automatic Short Tag Support</h2>
+
+<p><strong>Note:</strong> If you find that the syntax described in this page does not work on your server it might
be that "short tags" are disabled in your PHP ini file. Code Igniter will optionally rewrite short tags on-the-fly,
allowing you to use that syntax even if your server doesn't support it. This feature can be enabled in your
<dfn>config/config.php</dfn> file.</p>
+<p class="important">Please note that if you do use this feature, if PHP errors are encountered
+in your <strong>view files</strong>, the error message and line number will not be accurately shown. Instead, all errors
+will be shown as <kbd>eval()</kbd> errors.</p>
+
<h2>Alternative Echos</h2>
|