Welcome Guest, Not a member yet? Register   Sign In
can ci do like this?
#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 .
   }

}


Messages In This Thread
can ci do like this? - by El Forum - 07-25-2010, 05:23 AM
can ci do like this? - by El Forum - 07-25-2010, 07:13 AM
can ci do like this? - by El Forum - 07-25-2010, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB