Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions libraries/src/MVC/View/AbstractView.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,21 @@ abstract public function display($tpl = null);
* @return mixed The return value of the method
*
* @since 3.0
*
* @deprecated __DEPLOY_VERSION__ will be removed in 7.0.
* Retrieve the model with $model = $this->getModel(); and call the methods
* to the model directly, e.g. $model->getItems() instead of $this->get('Items').
*/
public function get($property, $default = null)
{
trigger_deprecation(
'joomla/mvc/view',
'5.3',
'The %s() method is deprecated and will be removed in 7.0. use $model = $this->getModel();
$this->items = $model->getItems(); instead',
__METHOD__
);

// If $model is null we use the default model
if ($default === null) {
$model = $this->_defaultModel;
Expand Down