Generic

Implements \Rest\View

Class GenericView A GenericView representation, throws the result of a script into the Response

Methods

Constructor of GenericView

__construct(string $file = null, mixed $props = null) 

Arguments

$file

string

The script to be rendered

$props

mixed

Vars to be passed to the script

Render the selected script

execute(\Rest\View\RestServer $rest) : \Rest\View\RestServer

Arguments

$rest

\Rest\View\RestServer

Response

\Rest\View\RestServer

Properties

file

file

props

props