⇦  Back to MVCFactoryInterface classMethod createView
public \Joomla\CMS\MVC\View\ViewInterface
createView
(mixed $name, mixed $prefix = '', mixed $type = '', array $config = [])
Method to load and return a view object.
Parameters
- string  $name  The name of the view.
 - string  $prefix  Optional view prefix.
 - string  $type  Optional type of view.
 - array  $config  Optional configuration array for the view.
 
Returns
- \Joomla\CMS\MVC\View\ViewInterface The view object
 
Since
-
Method createView - Source code
/**
 * Method to load and return a view object.
 *
 * @param   string  $name    The name of the view.
 * @param   string  $prefix  Optional view prefix.
 * @param   string  $type    Optional type of view.
 * @param   array   $config  Optional configuration array for the view.
 *
 * @return  \Joomla\CMS\MVC\View\ViewInterface  The view object
 *
 * @since   3.10.0
 * @throws  \Exception
 */
public function createView($name, $prefix = '', $type = '', array $config = []);