Fetches the location of a view into a string and returns it. Returns
false on failure.
public fetchViewLocation ( string $View = '', boolean | string $ControllerName = false, boolean | string $ApplicationFolder = false, boolean $ThrowError = true, boolean $useController = true ) : string | ||
$View | string | The name of the view to fetch. If not specified, it will use the value of $this->View. If $this->View is not specified, it will use the value of $this->RequestMethod (which is defined by the dispatcher class). |
$ControllerName | boolean | string | The name of the controller that owns the view if it is not $this. - If the controller name is FALSE then the name of the current controller will be used. - If the controller name is an empty string then the view will be looked for in the base views folder. |
$ApplicationFolder | boolean | string | The name of the application folder that contains the requested controller if it is not $this->ApplicationFolder. |
$ThrowError | boolean | Whether to throw an error. |
$useController | boolean | Whether to attach a controller to the view location. Some plugins have views that should not be looked up in a controller's view directory. |
Résultat | string | The resolved location of the view. |