NameProxyViewEngine
class NameProxyViewEngine implements ViewEngineInterface (View source)
Render view files with different engines depending on their filename
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.
string
getDefaultBinding()
Get the default binding
array
getBindings()
Get all bindings
string
getBindingForFile(string $file)
Get the engine key binding for a specific file
Details
at line 46
__construct(Application $app, array $bindings, string $default = '')
Constructor
at line 58
boolean
exists(string $view)
Check if a view exists.
at line 67
string
canonical(string $view)
Return a canonical string representation of the view name.
at line 77
ViewInterface
make(string[] $views)
Create a view instance from the first view name that exists.
at line 94
string
getDefaultBinding()
Get the default binding
at line 103
array
getBindings()
Get all bindings
at line 113
string
getBindingForFile(string $file)
Get the engine key binding for a specific file