class PhpViewFilesystemFinder implements ViewFinderInterface (View source)

Render view files with php.

Methods

__construct(array $directories = [])

Constructor.

array
getDirectories()

Get the custom views directories.

void
setDirectories(array $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(array $directories = [])

Constructor.

Parameters

array $directories

array getDirectories()

Get the custom views directories.

Return Value

array

void setDirectories(array $directories)

Set the custom views directories.

Parameters

array $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