* Theme::set_layout() * * Sets the layout for the current theme (default: index => index.php) * * @param string $layout The layout for the theme * @return void */
($layout = 'index')
| 55 | * @return void |
| 56 | */ |
| 57 | function set_layout($layout = 'index') |
| 58 | { |
| 59 | $path = $this->config('path').$this->config('theme').'/'.$layout.'.php'; |
| 60 | if (!file_exists($path)) |
| 61 | { |
| 62 | $layout = 'index'; |
| 63 | } |
| 64 | $this->set_config('layout', $layout); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Theme::add_message() |
nothing calls this directly
no test coverage detected