Fatal error: Call to undefined method - Joomla 3 Component Development
Fatal error: Call to undefined method ComponentViewName::yourMethod() in /home/userna5/public_html/components/com_component/views/component/view.html.php on line 19
This error can be resolved using the getModel method, and this is how you can edit your view.html.php file to do so.
$model = $this->getModel(); $model->someMethod();
Below, we've created a screenshot that shows the getModel method being used:
Joomla Community Google+ Hangout #3
June 3rd, 2014
Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!