Joomla 3 - What to use instead of assignRef?

后端 未结 2 1059
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 11:46

In my project I have this method in my view:

public function elegirSeleccionados(){
    $this->assignRef(\'pagination\', $this->get(\'pagination\'));
          


        
2条回答
  •  悲哀的现实
    2021-01-06 12:33

    assignRef() and assign() are not needed anymore, since Joomla 1.6+ requires at least PHP 5.2 (PHP5 uses assign by reference).

    Use in view.html.php

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

    and in the template just call $this->pagination.

    To get your skills up to date check the official Joomla! Documentation

提交回复
热议问题