FOFController::getView
Method to get a reference to the current view and load it if necessary.
Signature
public function getView([string
$name = '',
[string
$type = '',
[string
$prefix = '',
array
$config]]] )
Parameters
-
$name
- The view name. Optional, defaults to the controller name.
-
$type
- The view type. Optional.
-
$prefix
- The class prefix. Optional.
-
$config
- Configuration array for view. Optional.
Returns
- FOFView
- Reference to the view or an error.