Codeigniter File Paths
echo FCPATH."resources/img001/img_name.jpg";echo FCPATH."resources/style.css";
Constant FCPATH
will return system's path to Your front controller's file (index.php at root of Your CI-App)
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");