From b93464db656fe017fe434b0fc917921ded88a12c Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 31 Oct 2006 00:36:32 +0000 Subject: --- user_guide/general/alternative_php.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'user_guide/general') 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

Alternate PHP Syntax for View Files

If you do not utilize Code Igniter's template engine, 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.

-

Note: If you find that the syntax described in this page does not work on your server it might +

Automatic Short Tag Support

+ +

Note: 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 config/config.php file.

+

Please note that if you do use this feature, if PHP errors are encountered +in your view files, the error message and line number will not be accurately shown. Instead, all errors +will be shown as eval() errors.

+

Alternative Echos

-- cgit v1.2.3-24-g4f1b