How to pass argument to index(arg='') ? |
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. |
Messages In This Thread |
How to pass argument to index(arg='') ? - by zenepay - 06-21-2016, 02:18 AM
RE: How to pass argument to index(arg='') ? - by zenepay - 06-21-2016, 03:48 AM
RE: How to pass argument to index(arg='') ? - by dmyers - 06-21-2016, 05:54 AM
RE: How to pass argument to index(arg='') ? - by zenepay - 06-21-2016, 06:40 AM
RE: How to pass argument to index(arg='') ? - by dmyers - 06-21-2016, 08:17 AM
RE: How to pass argument to index(arg='') ? - by InsiteFX - 06-21-2016, 08:13 AM
RE: How to pass argument to index(arg='') ? - by zenepay - 06-27-2016, 10:25 PM
|