Difference between revisions of "Developing a MVC Component/Adding a model to the site part"
From Joomla! Documentation
m (M-b-o moved page J2.5 talk:Developing a MVC Component/Adding a model to the site part to Archived talk:Developing a MVC Component/Adding a model to the site part) |
|
(3 intermediate revisions by 2 users not shown) | |
(No difference)
|
Latest revision as of 17:18, 26 April 2022
this is confusing because it looks like your method should be getMsg not get('msg')
I agree, that's why I prefer to use (on the view):
$model = &$this->getModel();
$this->msg = $model->getMsg();
It's less confusing and it works fine also
--Apaulo 14:30, 2 June 2011 (CDT)