我尝试了两种选项(可以找到在互联网),并没有取得进展:如何将价值从控制器传递到在Joomla 2.5中查看?
//in controller
$show_all = TRUE;
$view->assignRef('show', $show_all);
//in default.php and viev.html.php
$this->show;
//result
Notice: Undefined property: componentViewcomponent::$show
//in controller
$show_all = TRUE;
$view->assign('show', $show_all);
//in default.php and viev.html.php
$this->get('show');
//result
NULL
尝试使用“true”或某些可能解决问题的整数值 –