PhpViewEngine
class PhpViewEngine implements ViewEngineInterface (View source)
Render view files with php.
Methods
boolean
exists(string $view)
Check if a view exists.
string
canonical(string $view)
Return a canonical string representation of the view name.
make(string[] $views)
Create a view instance from the first view name that exists.
void
PhpView|null
popLayoutContent()
Pop the top-most layout content from the stack.
string
getLayoutContent()
Pop the top-most layout content from the stack, render and return it.
Details
at line 51
__construct(callable $compose, PhpViewFilesystemFinder $finder)
Constructor.
at line 59
boolean
exists(string $view)
Check if a view exists.
at line 66
string
canonical(string $view)
Return a canonical string representation of the view name.
at line 74
ViewInterface
make(string[] $views)
Create a view instance from the first view name that exists.
at line 175
string
getLayoutContent()
Pop the top-most layout content from the stack, render and return it.