We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've gotten error by {loop} in PHP 5.6.1 I putted the code like the sample template.php
$user_log = array(array('name'=>'Mars'), array('name'=>'Jupiter')); $tpl->assign($user_log);
template.html
{loop="user_list"} {$key} - {$value.name}</br> {/loop}
It does not work, and just show blank page with 500 error status.
The text was updated successfully, but these errors were encountered:
You only need to put the variable name in your assign command:
$tpl->assign("user_list", $user_log);
Sorry, something went wrong.
I already putted as you code but I still does not work. $tpl->assign("user_list", $user_log); It does cause the problem.
Another way, I get success by changing this {loop="user_list"} to {loop="$user_list"}
So all good, nice, I'm going to close this issue.
No branches or pull requests
I've gotten error by {loop} in PHP 5.6.1
I putted the code like the sample
template.php
template.html
It does not work, and just show blank page with 500 error status.
The text was updated successfully, but these errors were encountered: