Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 560 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Joomla 3 - What to use instead of assignRef?

#1
In my project I have this method in my view:

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?
Reply

#2
***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][1]


[1]:

[To see links please register here]

Reply

#3
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>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through