I have this basic question
Is this :
<a href="userconsole/indivstore/<?php echo $obj->store_id; ?>/">
<?php echo $obj->title; ?></a>
Different from this:
<a href="/userconsole/indivstore/<?php echo $obj->store_id; ?>/">
<?php echo $obj->title; ?></a>
Or is there no difference?
(I am using CodeIgniter at present)
<a href="userconsole/indivstore/<?php echo $obj->store_id; ?>/">is relative URLso if you are on
http://host/site/current-pageit will point tohttp://host/site/current-page/userconsole/indivstore/<?php echo $obj->store_id; ?>which is wrong<a href="/userconsole/indivstore/<?php echo $obj->store_id; ?>/">is absolute URL so if you are onhttp://host/site/current-pageit will point tohttp://host/userconsole/indivstore/<?php echo $obj->store_id; ?>which is wrong if your site is under a sub folder.the correct way to generate URL with codeigniter is using site_url() helper
please check http://codeigniter.com/user_guide/helpers/url_helper.html