Welcome Guest, Not a member yet? Register   Sign In
Template Parser Limited?
#1

[eluser]Mischievous[/eluser]
I'm trying to run the template parser through a multidimensional array.... 3 dimensional to be exact. and it doesn't seem to like either the array setup or the parser is incapable of handling such operation.

ex: with 2 dimensional...
Code:
$query = $this->db->query("SELECT * FROM blog");

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

$data = array(
              'blog_title'   => 'My Blog Title',
              'blog_heading' => 'My Blog Heading',
              'blog_entries' => $query->result_array()
            );

$this->parser->parse('blog_template', $data);

I need a three dimensional

Code:
$query = $this->db->query("SELECT * FROM blog");

$this->load->library('parser');
$dataset = array(
             'category1' => $query1->result_array(),
             'category2' => $query2->result_array(),
             'category3' => $query3->result_array()
            );


$data = array(
              'blog_title'   => 'My Blog Title',
              'blog_heading' => 'My Blog Heading',
              'blog_entries' => $dataset,
            );

$this->parser->parse('blog_template', $data);

If anyone has more information about the template parser I would appreciate it!


Messages In This Thread
Template Parser Limited? - by El Forum - 06-18-2009, 12:52 PM
Template Parser Limited? - by El Forum - 06-18-2009, 01:58 PM
Template Parser Limited? - by El Forum - 06-18-2009, 02:10 PM
Template Parser Limited? - by El Forum - 06-19-2009, 10:58 AM
Template Parser Limited? - by El Forum - 06-19-2009, 11:11 AM
Template Parser Limited? - by El Forum - 06-19-2009, 11:15 AM
Template Parser Limited? - by El Forum - 06-19-2009, 12:11 PM
Template Parser Limited? - by El Forum - 06-19-2009, 09:47 PM
Template Parser Limited? - by El Forum - 06-20-2009, 06:18 AM
Template Parser Limited? - by El Forum - 06-20-2009, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB