JControllerLegacy::createView
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.
Note the "name, prefix, type" order of parameters, which differs from the "name, type, prefix" order used in related public methods.
Signature
protected function createView(string
$name,
[string
$prefix = '',
[string
$type = '',
array
$config]] )
Parameters
-
$name
- The name of the view.
-
$prefix
- Optional prefix for the view class name.
-
$type
- The type of view.
-
$config
- Configuration array for the view. Optional.
Returns
- mixed
- View object on success; null or error result on failure.