Difference between revisions of "Using multiple models in an MVC component"
From Joomla! Documentation
Adamski102 (talk | contribs) (New page: It is worth to remember about prefix: $model =& $this->getModel( 'Customer','CustomersModel' ); in this example the framework will attempt to find class CustomersModelCustomer Lack of ...) |
(No difference)
|
Latest revision as of 16:23, 6 October 2010
It is worth to remember about prefix:
$model =& $this->getModel( 'Customer','CustomersModel' );
in this example the framework will attempt to find class CustomersModelCustomer
Lack of the model prefix may cause the following: Fatal error: Call to a member function getName() on a non-object in {...}/libraries/joomla/application/component/view.php on line 449