Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucky9805 opened this issue Mar 27, 2012 · 1 comment
Open

Comments

@lucky9805
Copy link

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?

@FDiskas
Copy link

FDiskas commented Oct 29, 2012

Try to set in template config file
$config['parser_enabled'] = FALSE;
or try this pull request:
#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants