Joomla 3-使用什么来代替assignRef?

Joomla 3-使用什么来代替assignRef?,joomla,joomla3.0,Joomla,Joomla3.0,在我的项目中,我认为有这种方法: public function elegirSeleccionados(){ $this->assignRef('pagination', $this->get('pagination')); $this->assignRef('items', $this->get('recientes')); $this->assignRef('list', $this->get('list')); pare

在我的项目中,我认为有这种方法:

public function elegirSeleccionados(){
    $this->assignRef('pagination', $this->get('pagination'));
    $this->assignRef('items', $this->get('recientes'));
    $this->assignRef('list', $this->get('list'));
    parent::display();
}
assignRef
在本Joomla 3中被弃用/删除

我应该改用什么?

assignRef()和assign()不再需要了,因为Joomla 1.6+ 至少需要PHP5.2(PHP5使用通过引用分配)

在view.html.php中使用

$this->pagination=$this->get('pagination')

在模板中,只需调用
$this->pagination


要更新您的技能,请查看官方的txs,但在我看来(default.tpl)zeh val不会显示

view.html.php
$this->my_string=“ledl”;

返回父项::显示($tpl);
default.tpl
{$this->my_string}

扩展名应该是.php而不是.tpl如果要使用.tpl,必须使用$this->setLayoutExt('tpl')设置不同的erxtension
$this->my_string = "ledl";
<br>
return parent::display($tpl);
<bold>{$this->my_string}</bold>