I have been using CodeIgniter Framework for some months.
In views, I usually include external css and js with base_url(), just like this:
<link href="<?php echo base_url() ?>assets/css/custom.css" rel="stylesheet">
But someone tells me that using ./ also works too. And that's true.
So, what is better ( in security )?