Welcome Guest, Not a member yet? Register   Sign In
Help please!

Hi everybody, and Merry Christmas !

I wish someone could help me please, i have a weird problem : i write <?php $this->config->item('base_url'); ?> in my view, and nothing is displayed, as you can see on this page : http://test.ownsurf.com/.

Yesterday i was having the same problem, the same view, from the same controller, but not the same function.


function index()


function ref()



From the function index, the base_url variable was correct, but from the ref function, no ...

If someone have had the same problem previously, and fixed it, please help me, thanks!!

Hi ownAks and Merry Christmas,

You are doing a small mistake which I do all the time Smile

<?php $this->config->item(‘base_url’); ?>

You forgot to use echo

<?php echo $this->config->item(‘base_url’); ?>

Hope this helps Wink

Load the url_helper

<?php echo base_url(); ?>

<base href="<?php echo base_url(); ?>">


OMG Yes it works !!! thank you very much, of course if i forgot the "echo" ...

Theme © iAndrew 2016 - Forum software by © MyBB