MCPcopy Index your code
hub / github.com/atomicon/codeigniter-theme / set_layout

Method set_layout

libraries/theme.php:57–65  ·  view source on GitHub ↗

* 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')

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

configMethod · 0.95
set_configMethod · 0.95

Tested by

no test coverage detected