• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Got problems on link the page or classes

#4
[eluser]Nikhil Vijayan[/eluser]
When using ci always load url helper . so specify it in auto loader ( inside application/config/autoload.php )

inside the head tags of views add this

Code:
<head>

<base href="<?= base_url() ?>"  />

</head>

make sure u have entered correct base url in config.php

now try . it will work :coolsmile:

and also use the following ways when you link to another pages

Code:
<?= anchor('home','home') ?>

or
Code:
<a href="&lt;?= site_url('home') ?&gt;">home</a>

whichever makes sense to you


Messages In This Thread
Got problems on link the page or classes - by El Forum - 06-12-2008, 05:16 AM
Got problems on link the page or classes - by El Forum - 06-12-2008, 05:56 AM
Got problems on link the page or classes - by El Forum - 06-12-2008, 09:27 AM
Got problems on link the page or classes - by El Forum - 06-12-2008, 12:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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