class PhpViewFilesystemFinder implements ViewFinderInterface (View source)

Render view files with php.

Methods

__construct(string[] $directories = [])

Constructor.

string[]
getDirectories()

Get the custom views directories.

void
setDirectories(string[] $directories)

Set the custom views directories.

boolean
exists(string $view)

Check if a view exists.

string
canonical(string $view)

Return a canonical string representation of the view name.

string
resolveFilepath(string $view)

Resolve a view to an absolute filepath.

Details

__construct(string[] $directories = [])

Constructor.

Parameters

string[] $directories

string[] getDirectories()

Get the custom views directories.

Return Value

string[]

void setDirectories(string[] $directories)

Set the custom views directories.

Parameters

string[] $directories

Return Value

void

boolean exists(string $view)

Check if a view exists.

Parameters

string $view

Return Value

boolean

string canonical(string $view)

Return a canonical string representation of the view name.

Parameters

string $view

Return Value

string

string resolveFilepath(string $view)

Resolve a view to an absolute filepath.

Parameters

string $view

Return Value

string