CodeIgniter Forums
anchor problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: anchor problem (/showthread.php?tid=7648)



anchor problem - El Forum - 04-17-2008

[eluser]zizzo[/eluser]
hi,

i need help for my problem:

the url of my controller in codeigniter is:

http://1.2.3.4/sea/index.php/example

i add in the controller this anchor: anchor(’/delete’,’Delete a record’);

but, when i visualize the page, i obtain a link that heads for http://5.6.7.8/sea/delete

the ip address of server changes completely and ‘index.php’ disappear.

Sorrrryyy for the bad english

Someone can help me?


anchor problem - El Forum - 04-17-2008

[eluser]xwero[/eluser]
have you set the base_url and the index_page in the config.php file?


anchor problem - El Forum - 04-17-2008

[eluser]zizzo[/eluser]
i have set these settings only now -.-

thanks veeeeeery much for the fast reply!!


anchor problem - El Forum - 04-17-2008

[eluser]Tom Glover[/eluser]
The Config will always need to be set-up before your controllers will work. Some vars in the config are less important than others.


anchor problem - El Forum - 04-17-2008

[eluser]zizzo[/eluser]
i know it's very important to set the configs files, but i haven't checked these because before the project was managed from an other person, so I thought that he had already set correctly these files.

i don't know if you have understood my explanation Big Grin

i hope yeees Big Grin