It may be slightly different depending on how you lose your views, but with the usual, dumb way to do it, here is an example:
Home controller:
public function index()
{
$this->carabiner->css('default.css')
$this->carabiner->js('custom.js');
$data['assets'] = $this->carabiner->display_string('both');
$this->load->view('templates/header', $data);
$this->load->view('home/index', $data);
$this->load->view('templates/footer');
}
Type of title:
<html>
<head>
<title>Title of Page</title>
<?php echo $assets; ?>
</head>
...
source
share