public function before()
{
parent::before();
$this->theme = Theme::instance(
'_default_',
[
'active' => 'default',
'assets_folder' => 'admin/assets',
'view_ext' => '.php',
'paths' => [APPPATH . 'themes' . DS . 'admin']
]
);
$this->theme->set_template( 'templates' . DS . 'layout' );
}
<link rel="stylesheet" href="<?= BASEURL ?>admin/assets/default/bower_components/bootstrap/dist/css/bootstrap.min
.css">
Theme::instance()->asset->css('bower_components/bootstrap/dist/css/bootstrap.min.css')
Theme::instance()->asset->css('../bower_components/bootstrap/dist/css/bootstrap.min.css')
It looks like you're new here. If you want to get involved, click one of these buttons!