How to transfer $data['query'] to Dwoo ? |
[eluser]sigork[/eluser]
[quote author="Phil Sturgeon" date="1259614714"]That implementation is being replaced by mine in v1.2 of Dwoo. Get in there early.[/quote] I performed the instructions specified here: http://philsturgeon.co.uk/code/codeigniter-dwoo (and I added parser to autoload.php). 'dwoo_test' worked correctly. In a test controller I replaced Code: $this->load->view(THEMEDIR.'site/pages_view', $data); with Code: $this->parser->parse(THEMEDIR.'site/pages_view', $data); If I replace (in View) Code: <?php echo $title; ?> with Code: {$title} it works. But a question: Should I re-write the controller to use arrays in it, not objects? Because as I see the objects work (for example, 'title'). Will Code: $data['query'] = $this->db->get(); work also, or I should re-write it as an array to use it in View with Dwoo? Thanks! |
Messages In This Thread |
How to transfer $data['query'] to Dwoo ? - by El Forum - 11-30-2009, 08:25 AM
How to transfer $data['query'] to Dwoo ? - by El Forum - 11-30-2009, 08:58 AM
How to transfer $data['query'] to Dwoo ? - by El Forum - 01-10-2010, 08:42 AM
How to transfer $data['query'] to Dwoo ? - by El Forum - 01-10-2010, 08:47 AM
How to transfer $data['query'] to Dwoo ? - by El Forum - 01-10-2010, 10:32 AM
|