CodeIgniter Forums

Full Version: anchor links dont appear
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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)

El Forum

[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

El Forum

[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

El Forum

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

took me long to find that solution

Thanks !