Welcome Guest, Not a member yet? Register   Sign In
not showing the right path
#1

[eluser]li9ht[/eluser]
im using this
Code:
<?=anchor('test/','Home'); ?>  |  <?=anchor('test/summary/','Summary'); ?>
to make the navigation
however it doesnt show the correct patch.. its showing localhost/ even thought when i open at other computer.. so does the img() and
Code:
<?=link_tag('css/style.css')?>
function.. it fetching data from base_url.. is there any other way ..and i cant use absolute path.. dunno why?
#2

[eluser]Michael Wales[/eluser]
The helpers are designed to ease the transition between development/production environments - by not using absolute paths you increase your mobility in moving stuff around. The helpers will use whatever you have set in your base_url in config.php.

Regardless, you are always free to ignore the helpers and just use plain old HTML to point to absolute paths.




Theme © iAndrew 2016 - Forum software by © MyBB