You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Load the library where you want to use or you can autoload it inside **autoload.php** file.
90
+
91
+
`$autoload['libraries'] = array('theme');`
92
+
93
+
In your controller, simple use library's method or chain them (ones that can be chained). Example (see: *controllers/Example.php*)
94
+
95
+
$this->theme
96
+
->title('Title Goes Here')
97
+
->add_css('added_css1', 'added_css2')
98
+
->append_css('appended_css1'),
99
+
->add_js('added_js1'),
100
+
->append_js('appended_js1')
101
+
->add_partial('header')
102
+
->load('view_file', $data);
103
+
104
+
There is a short version of all this but in case you want to add partial views you have to use `$this->theme->add_partial()` before using the function.
0 commit comments