View Helper
This helper will provide information about app views, layout folder, layout components, folder of partials, etc.
View Helper is "macroable" and "collectable", which allows you to run batch methods and collect output with ViewHelper::collect('layoutsPath', 'componentsPath')
Layouts Path
/**
* Get layouts dir
* @return string|null
*/
ViewHelper::layoutsPath(): void
Layouts Name
/**
* Get layouts dir name
* @return string|null
*/
ViewHelper::layoutsName(): void
Layouts
/**
* Get layout components
* @return Collection
*/
ViewHelper::layouts(): void
Components Path
/**
* Get components path
* @return string|null
*/
ViewHelper::componentsPath(): void
Components Name
/**
* Get components dir name
* @return string|null
*/
ViewHelper::componentsName(): void
Components
/**
* Get components
* @return Collection
*/
ViewHelper::components(): void
Main Layout
/**
* Get main template that others extend
* @return string|null
*/
ViewHelper::main(): void
Header Partial
/**
* Check if header component is defined and return it
* @return string|null
*/
ViewHelper::header(): void
Footer Partial
/**
* Check if footer component is defined and return it
* @return string|null
*/
ViewHelper::footer(): void
Path
/**
* Get first valid path or view
* @return string|null
*/
ViewHelper::path(): void
Paths
/**
* Get all paths
* @return Collection
*/
ViewHelper::paths(): void
Folders
/**
* Get all view folders
* @return Collection
*/
ViewHelper::folders(): void