From 866b8138c5f51b0ca544dd8a91c265d9200acab8 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 21 Apr 2008 22:02:37 +0000 Subject: doc clarifications, example fixes, grammar. --- user_guide/libraries/parser.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'user_guide/libraries/parser.html') diff --git a/user_guide/libraries/parser.html b/user_guide/libraries/parser.html index 48af7ecd9..d72891af9 100644 --- a/user_guide/libraries/parser.html +++ b/user_guide/libraries/parser.html @@ -86,10 +86,8 @@ PHP from your templates (view files).

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 -full-blown template parsing solution. We've kept it very lean on purpose in order to maintain maximum performance. - -

+

Also Note: The Template Parser Class is not a +full-blown template parsing solution. We've kept it very lean on purpose in order to maintain maximum performance.

Initializing the Class

@@ -104,7 +102,7 @@ full-blown template parsing solution. We've kept it very lean on purpose in orde

$this->parser->parse()

-

This variable accepts a template name and data array as input, and it generates a parsed version. Example:

+

This method accepts a template name and data array as input, and it generates a parsed version. Example:

$this->load->library('parser');

@@ -173,7 +171,7 @@ $data = array(
$this->parser->parse('blog_template', $data);

If your "pair" data is coming from a database result, which is already a multi-dimensional array, you can simply -use the database result function:

+use the database result_array() function:

$query = $this->db->query("SELECT * FROM blog");
-- cgit v1.2.3-24-g4f1b