Get the path to a view.
public static viewLocation ( string $view, string $controller, string $folder, array | null $extensions = null ) : string | false | ||
$view | string | the name of the view. |
$controller | string | the name of the controller invoking the view or blank. |
$folder | string | the application folder or plugins/ |
$extensions | array | null | optional. list of extensions to allow |
return | string | false | The path to the view or false if it wasn't found. |