Welcome Guest, Not a member yet? Register   Sign In
How to pass argument to index(arg='') ?
#1

Hi,
It works well untill I change to new server.
I try to find out what i did wrong.
Here is the code

class Home extends MY_Controller {

/* this should load the index page */

// Dashboard

function __construct(){

parent::__construct();
}
public function index($team_id='')
{
....
}
}
before that I can access site by http://myweb.com/home.html or http://myweb.com/home/1.html
Now, I have to access only with index method http://myweb.com/home.html and http://myweb.com/home/index/1.html
How I can remove /index/
I wonder that why it works on my old server but after moving to cloud server it just does not work anymore.
Reply


Messages In This Thread
How to pass argument to index(arg='') ? - by zenepay - 06-21-2016, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB