array$config A named configuration array for object construction.
name: the name (optional) of the view (defaults to the view class name suffix).
charset: the character set to use for display
escape: the name (optional) of the function to use for escaping strings
base_path: the parent path (optional) of the views directory (defaults to the component folder)
template_plath: the path (optional) of the layout directory (defaults to base_path + /views/ + view name
helper_path: the path (optional) of the helper files (defaults to base_path + /helpers/)
layout: the layout (optional) to use to display the view
Method to add a model to the view. We support a multiple model single
view system by which models are referenced by classname. A caveat to the
classname referencing is that any classname prepended by \JModel will be
referenced by the name without \JModel, eg. \JModelCategory is just
Category.
Parameters
\Joomla\CMS\MVC\Model\BaseDatabaseModel $model The model to add to the view.
bool$default Is this the default model?
Returns
\Joomla\CMS\MVC\Model\BaseDatabaseModel The added model.