• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
anchor links dont appear

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

#2
[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

#3
[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

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

took me long to find that solution

Thanks !


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.