viewLocation() public static method

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/ folder.
$extensions array | null optional. list of extensions to allow
return string | false The path to the view or false if it wasn't found.
Ejemplo n.º 1
0
 /**
  * @param string $view The view name.
  * @param string $controllerName The controller name for the view.
  * @param string $applicationFolder The application folder for the view.
  * @return EmailTemplate $this The calling object.
  * @throws Exception
  */
 public function setView($view, $controllerName = 'email', $applicationFolder = 'dashboard')
 {
     $this->view = AssetModel::viewLocation($view, $controllerName, $applicationFolder);
     return $this;
 }