Welcome Guest, Not a member yet? Register   Sign In
Base path problem with CI
#1

[eluser]shinokada[/eluser]
When I use this in a view file,

Code:
'Basepath: ' . BASEPATH . '<br />'.

I get the following output.

Basepath: C:\xampp\htdocs\ci_copy/system/

Can you see \ci_copy/system/?

I thought it is taken care of in index.php but it obviously not.

Could anyone give me some input how to solve this problem?
#2

[eluser]boony[/eluser]
Probably good to show exactly what you are trying to do. But if you are trying to set the base url then you should use base_url(). So locating an image may be <img src = '&lt;?=base_url(); ?&gt;....'




Theme © iAndrew 2016 - Forum software by © MyBB