FOFController::getAnInstance
Gets a static (Singleton) instance of a controller class. It loads the relevant controller file from the component's directory or, if it doesn't exist, creates a new controller object out of thin air.
Signature
public function getAnInstance([string
$option = null,
[string
$view = null,
array
$config]] )
Parameters
-
$option
- Component name, e.g. com_foobar
-
$view
- The view name, also used for the controller name
-
$config
- Configuration parameters
Returns
- FOFController