Definition at line 5 of file AHttpController.php.
| __construct |
( |
|
$context, |
|
|
|
$params |
|
) |
| |
Definition at line 74 of file AHttpController.php.
78 throw new \Exception(
"Cannot access attribute {$key}");
Init theme
Definition at line 30 of file AHttpController.php.
33 $themeDir = $this->context->router->themesPath.$themeName.
'/';
34 if (!is_dir($themeDir))
35 throw new \Exception\Error404();
36 $this->theme = $themeDir;
static getConfig($lang=null, $key=null, $defaultValue=null)
Load and render a file
- Parameters
-
| string | $viewFile | template view to load (from theme) |
- Returns
- boolean true on success
Definition at line 55 of file AHttpController.php.
57 $themedir = opendir($this->theme);
59 while ($dir = readdir($themedir))
61 if ($dir !== $viewFile || is_dir($this->theme.
'/'.$dir))
66 if ($exists ===
false)
68 $this->output->renderFile($this->theme . $exists);
The documentation for this class was generated from the following file: