You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: