0% found this document useful (0 votes)
21 views

00tips Codeigniter

The document discusses enabling the base_url() function in CodeIgniter by editing configuration files. It recommends adding a line to the autoload.php file to load the url helper, which will then allow using base_url() such as in linking to CSS files. Loading the URL helper via autoload.php is an alternative to directly editing CodeIgniter files.

Uploaded by

Jhon Thomas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

00tips Codeigniter

The document discusses enabling the base_url() function in CodeIgniter by editing configuration files. It recommends adding a line to the autoload.php file to load the url helper, which will then allow using base_url() such as in linking to CSS files. Loading the URL helper via autoload.php is an alternative to directly editing CodeIgniter files.

Uploaded by

Jhon Thomas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

I think you haven't edited codeigniter files to enable base_url().

you try to assign


it in url_helper.php you also can do the same config/autoload.php file. you can
add this code in your autoload.php
$autoload['helper'] = array('url');
0 down
vote Than You will be able to ue base_url() like this

<link rel="stylesheet" href="<?php echo base_url();?>/css/template/default.css"


type="text/css" />
shareimprove this answer answered Mar 22 at 5:53

http://jeromejaglale.com/doc

template codeigniter

You might also like