I created a component with a view called e.g. "MyView" and associated default model "MyViewModel.php". In "MyView/HtmlView.php" I want to load the default model and also an extra additional model called "MyView2Model.php".
Doing
Code: Select all
$model1 = $this->getModel('MyView');
Code: Select all
$model2 = $this->getModel('MyView2');
Doe it mean that I can use only one model per view?
Thanks!