Base class for a Joomla Controller Controller (Controllers are where you put all the actual code.) Provides basic
functionality, such as rendering views (aka displaying templates).
array$config An optional associative array of configuration settings.
Recognized key values include 'name', 'default_task', 'model_path', and
'view_path' (this list is not meant to be comprehensive).
\Joomla\CMS\MVC\Factory\MVCFactoryInterface $factory The factory.
\Joomla\CMS\Application\CMSApplication $app The Application for the dispatcher
Method to load and return a view object. This method first looks in the
current template directory for a match and, failing that, uses a default
set path to load the view class file.
Parameters
string$name The name of the view.
string$prefix Optional prefix for the view class name.
string$type The type of view.
array$config Configuration array for the view. Optional.
Returns
\Joomla\CMS\MVC\View\ViewInterface|null View object on success; null or error result on failure.