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:
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!