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-------------------
<?php
echo $show_param;
?>
--------------------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.
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------------------- <?php echo $show_param; ?> --------------------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?