Skip to content

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

Description

@lucky9805

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions