Welcome Guest, Not a member yet? Register   Sign In
can ci do like this?
#1

[eluser]huuray[/eluser]
in basecamp,their link look like this

http://test.basecamphq.com/projects/4113...s/13256077

can i do the same in ci?
what im doing now something like http://url/controller/function/id
#2

[eluser]Twisted1919[/eluser]
Of course you can .
You have two options : ROUTES AND REMAP .
For this, i would suggest remap .
here is an example :
Code:
class Projects extends Controller{

   function _remap($method)
   {
      //map every request to index .
      $this->index();
   }

   // projects/1000/milestones/20000
   function index($project_id='',$something='milestones',$something_id='')
   {
     //Process here based on the uri params .
   }

}
#3

[eluser]huuray[/eluser]
ok,thanks.
i'll give it a try.




Theme © iAndrew 2016 - Forum software by © MyBB