You can use base_url function. To use this function you have to load url helper
You can load wherever it required as below:
$this->load->helper('url');
Or you can set in autoload.php.
echo base_url("resources/img001/img_name.jpg");
echo base_url("resources/style.css");