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

Method set_theme

libraries/theme.php:38–47  ·  view source on GitHub ↗

* Theme::set_theme() * * Sets the theme * * @param string $theme The theme * @return void */

($theme = 'default')

Source from the content-addressed store, hash-verified

36 * @return void
37 */
38 function set_theme($theme = 'default')
39 {
40 $this->set_config('theme', $theme);
41
42 $functions = $this->config('path').$this->config('theme').'/functions.php';
43 if (file_exists($functions))
44 {
45 include($functions);
46 }
47 }
48
49 /**
50 * Theme::set_layout()

Callers 2

__constructMethod · 0.95
__constructMethod · 0.80

Calls 2

set_configMethod · 0.95
configMethod · 0.95

Tested by

no test coverage detected