CodeIgniter Forums
anchor links dont appear - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: anchor links dont appear (/thread-18477.html)



anchor links dont appear - El Forum - 05-07-2009

[eluser]chaostheory[/eluser]
hi,

Code:
<li>&lt;? = anchor('sms_download/', 'Check SMS Download');?&gt;</li>           <li>&lt;?=anchor('page/register', 'Register');?&gt;</li>

I have the above in page_view (in views folder), when launch the site from localhost(using xampa) everything works fine and links appear and can click on them and direct me to the relevant controller->viewpage

but i uploaded my site to a server and the links just dont appear

i am using anchor() as shown above.
Code:
&lt;title&gt;&lt;?=$title?&gt;&lt;/title&gt;

this also doesnt work any ideas (was working in localhost)


anchor links dont appear - El Forum - 05-07-2009

[eluser]Dam1an[/eluser]
Maybe your server doesn't support short tags?
Try
Code:
<li>&lt;?php echo anchor('sms_download/', 'Check SMS Download');?&gt;</li>

Or you can enable short tag rewriting in the config file


anchor links dont appear - El Forum - 05-07-2009

[eluser]chaostheory[/eluser]
Not Found

The requested URL /codeigniter/index.php/logsystem was not found on this server.


i get the above error, when i did what you suggested.

==============================

edit:- worked by re-writing short tag = TRUE in config file


anchor links dont appear - El Forum - 05-07-2009

[eluser]chaostheory[/eluser]
I enabled re-write short tag, everything works fine now

took me long to find that solution

Thanks !