From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/libraries/parser.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'user_guide/libraries/parser.html') diff --git a/user_guide/libraries/parser.html b/user_guide/libraries/parser.html index 091817e11..febeaa572 100644 --- a/user_guide/libraries/parser.html +++ b/user_guide/libraries/parser.html @@ -12,7 +12,7 @@ @@ -88,7 +88,7 @@ variables or variable tag pairs. If you've never used a template engine, pseudo- PHP from your templates (view files).

Note: Code Igniter does not require you to use this class -since using pure PHP in your view pages lets them run a little faster. However, some developers prefer to use a template engine if +since using pure PHP in your view pages lets them run a little faster. However, some developers prefer to use a template engine if they work with designers who they feel would find some confusion working with PHP.

Also Note: The Template Parser Class is not not a @@ -125,7 +125,7 @@ and the second parameter contains an associative array of data to be replaced in template would contain two variables: {blog_title} and {blog_heading}

There is no need to "echo" or do something with the data returned by $this->parser->parse(). It is automatically -passed to the output class to be sent to the browser. However, if you do want the data returned instead of sent to the output class you can +passed to the output class to be sent to the browser. However, if you do want the data returned instead of sent to the output class you can pass TRUE (boolean) to the third parameter:

$string = $this->parser->parse('blog_template', $data, TRUE); @@ -156,7 +156,7 @@ repeated, with each iteration containing new values? Consider the template exam In a case like this, the entire chunk of data between these pairs would be repeated multiple times, corresponding to the number of rows in a result.

-

Parsing variable pairs is done using the identical code shown above to parse single variables, +

Parsing variable pairs is done using the identical code shown above to parse single variables, except, you will add a multi-dimensional array corresponding to your variable pair data. Consider this example:

-- cgit v1.2.3-24-g4f1b