Property | Type | Description | |
---|---|---|---|
$container | |||
$view_vars |
Method | Description | |
---|---|---|
__construct ( Pimple\Container $container ) | ||
setVars ( $key, $value = null ) |
Method | Description | |
---|---|---|
body ( $name = null, $default = null ) | ||
findTemplate ( $name ) | ||
generateUrl ( $handler, array $data = [], array $query_params = [], $is_absolute = false ) | ||
get ( $name ) | ||
getResponse ( ) | ||
isPost ( ) | ||
json ( array $vars, string | null $charset = 'utf-8' ) : string | Helper method to respond JSON. | |
query ( $name, $default = null ) | ||
redirect ( $uri, $code = 302 ) | ||
render ( $name, array $vars = [] ) |
public __construct ( Pimple\Container $container ) | ||
$container | Pimple\Container |
protected generateUrl ( $handler, array $data = [], array $query_params = [], $is_absolute = false ) | ||
$data | array | |
$query_params | array |