philsturgeon / codeigniter-template

Template library for CodeIgniter which supports modules, themes, partial views, etc.
411 stars 178 forks source link

Setting theme from the config #4

Closed dfreerksen closed 13 years ago

dfreerksen commented 13 years ago

If a theme was defined in the config, it wasn't actually building the _theme_path value, which meant you still had to call set_theme() in your controller. This change calls the set_theme() method from initialize() if a theme value was passed.