Controller:
$list = table::find();
foreach($list as $k=>$v)
{
$list[$k]->perms_txt = '2222';
}
$this->view->setVar('list',$list);
view template:
{% for rs in list %}
{{rs.perms_txt}}-------
{%/endfor%}
echo perms_txt not value!
Controller:
$list = table::find();
foreach($list as $k=>$v)
{
$list[$k]->perms_txt = '2222';
}
$this->view->setVar('list',$list);
view template:
{% for rs in list %}
{{rs.perms_txt}}-------
{%/endfor%}
echo perms_txt not value!