• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In Dropdown href not taking method in controller

#2
You should be using CodeIgniter's base_url() it should have been setup in ./application/config/config.php
with an ending slash /.

The base_url should point to your document root or where your index.php file is.

You links would then look like this:

PHP Code:
<ul>
 
   <li>
 
       <a href="<?= base_url('soft1/sell');?>">sell</a>
 
   </li>
</
ul
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: In Dropdown href not taking method in controller - by InsiteFX - 02-08-2019, 04:39 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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