Welcome Guest, Not a member yet? Register   Sign In
ajax update a div
#9

[eluser]gordon Stewart[/eluser]
Using CI with Smarty - Smarty templates

Yes, I know CI uses PHP templates...

---

In the controller / welcome.php script, i have :-


#$smarty->assign ("data", $data);
#$this->smarty->assign('data', $data);
$this->smarty_parser->parse("ci:news.tpl", $data);
#$this->load->view('news.tpl', $data);
#$this->smarty_parser->parse("news.tpl", $data);


if the BOTTOM one is un-commented, It displays the template HTML - but no data....
If any of the others are un-commented (& the others commented out) - It displays the template source-code (sometimes with data being sent to remplate)....

(I've got another thread running here)... - Re getting data sent to template...


Messages In This Thread
ajax update a div - by El Forum - 05-14-2010, 08:12 AM
ajax update a div - by El Forum - 05-14-2010, 08:40 AM
ajax update a div - by El Forum - 05-14-2010, 08:47 AM
ajax update a div - by El Forum - 05-14-2010, 08:53 AM
ajax update a div - by El Forum - 05-17-2010, 09:52 PM
ajax update a div - by El Forum - 05-18-2010, 02:11 AM
ajax update a div - by El Forum - 05-18-2010, 02:26 AM
ajax update a div - by El Forum - 05-18-2010, 02:34 AM
ajax update a div - by El Forum - 05-18-2010, 02:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB