我嘗試了兩種選項(可以找到在互聯網),並沒有取得進展:如何將價值從控制器傳遞到在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」或某些可能解決問題的整數值 –