codeigniter-template icon indicating copy to clipboard operation
codeigniter-template copied to clipboard

Can set_partial set the third param(data) for the partial view?

Open lucky9805 opened this issue 13 years ago • 1 comments

I can't set the third param "data" for the partial view

I have a view named :test.php to used for partial. --------------------test.php-------------------

--------------------test.php-------------------

I write the controller to use $data["show_param"]="hello the world"; $this->template->set_partial('test','test',$data); $this->template->set_layout('default'); $this->template->build('aaa'); But the result I couldn't get the $show_param to echo.

How can I use the set_partial?

lucky9805 avatar Mar 27 '12 07:03 lucky9805

Try to set in template config file $config['parser_enabled'] = FALSE; or try this pull request: https://github.com/philsturgeon/codeigniter-template/pull/43

FDiskas avatar Oct 29 '12 13:10 FDiskas