Developing a MVC Component/Adding a model to the site part
From Joomla! Documentation
Revision as of 10:08, 13 February 2012 by Oc666 (talk | contribs) (moved Talk:Developing a Model-View-Controller (MVC) Component for Joomla!1.7 - Part 04 to Talk:Developing a Model-View-Controller (MVC) Component for Joomla!2.5 - Part 04)
Revision as of 10:08, 13 February 2012 by Oc666 (talk | contribs) (moved Talk:Developing a Model-View-Controller (MVC) Component for Joomla!1.7 - Part 04 to Talk:Developing a Model-View-Controller (MVC) Component for Joomla!2.5 - Part 04)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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)