Joomla 3 - What to use instead of assignRef?
In my project I have this method in my opinion:
public function elegirSeleccionados(){
$this->assignRef('pagination', $this->get('pagination'));
$this->assignRef('items', $this->get('recientes'));
$this->assignRef('list', $this->get('list'));
parent::display();
}
assignRef
is deprecated / removed in this Joomla 3.
What should I use instead?
+3
source to share
2 answers
assignRef () and assign () are no longer needed as Joomla 1.6+ requires at least PHP 5.2 (PHP5 uses assignment by reference).
Use in view.html.php
$this->pagination = $this->get('pagination')
and in the template just call $this->pagination
.
To upgrade your skills, check out the official Joomla! Documentation
+7
source to share