Joomla 3 - What to use instead of assignRef?

后端 未结 2 1051
爱一瞬间的悲伤
爱一瞬间的悲伤 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:12

    txs for this, but in my view (default.tpl) zeh val will not been shown

    view.html.php

    $this->my_string = "ledl";
    <br>
    return parent::display($tpl);
    

    default.tpl

    <bold>{$this->my_string}</bold>
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题