Property | Type | Description | |
---|---|---|---|
$templatePath | string | Path to the template |
Property | Type | Description | |
---|---|---|---|
$action | string | The current action | |
$data | mixed | The data | |
$header | The header object | ||
$module | string | The current module |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, string $data = null ) | ||
addCSS ( string $file, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = null ) | Add a CSS file into the array | |
addJS ( string $file, boolean $overwritePath = false, boolean $minify = true ) | Add a javascript file into the array | |
addJSData ( string $key, mixed $value ) | Add data that should be available in JS | |
createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : |
Creates and returns a Form instance from the type of the form. | |
execute ( ) | Execute the action If a javascript file with the name of the module or action exists it will be loaded. | |
getAction ( ) : string | Get the action | |
getContent ( string $template = null ) : string | Get parsed template content | |
getModule ( ) : string | Get the module | |
getTemplate ( ) : string | Get template | |
redirect ( string $url, integer $code = 302 ) | Redirect to a given URL |
Method | Description | |
---|---|---|
loadTemplate ( string $path = null ) | Load the template | |
setTemplatePath ( string $path ) | Set the path for the template to include or to replace the current one |
Method | Description | |
---|---|---|
setAction ( string $action ) | Set the action, for later use | |
setData ( string $data = null ) | Set the data, for later use | |
setModule ( string $module ) | Set the module, for later use |
public addCSS ( string $file, boolean $overwritePath = false, boolean $minify = true, boolean $addTimestamp = null ) | ||
$file | string | The path for the CSS-file that should be loaded. |
$overwritePath | boolean | Whether or not to add the module to this path. Module path is added by default. |
$minify | boolean | Should the CSS be minified? |
$addTimestamp | boolean | May we add a timestamp for caching purposes? |
public addJS ( string $file, boolean $overwritePath = false, boolean $minify = true ) | ||
$file | string | The path to the javascript-file that should be loaded. |
$overwritePath | boolean | Whether or not to add the module to this path. Module path is added by default. |
$minify | boolean | Should the file be minified? |
public createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : |
||
$type | string | Symfony\Component\Form\FormTypeInterface | The built type of the form |
$data | mixed | The initial data for the form |
$options | array | Options for the form |
return |
public execute ( ) |
public getContent ( string $template = null ) : string | ||
$template | string | |
return | string |
protected loadTemplate ( string $path = null ) | ||
$path | string | The path for the template to use. |
protected setTemplatePath ( string $path ) | ||
$path | string | The path to the template that should be loaded. |
protected Header,Frontend\Core\Engine $header | ||
return |