• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom URLs

#1
[eluser]ram4nd[/eluser]
I have URL that looks like:
example.com/controller/index/item_name

I would like to make it shorter, without the function name like:
example.com/controller/item_name

Where should I start or how can I get to result I need.

#2
[eluser]Dyllon[/eluser]
URI Routing

#3
[eluser]ram4nd[/eluser]
stuped me, thanks anyway

#4
[eluser]tomcode[/eluser]
You can also use Remapping

#5
[eluser]ram4nd[/eluser]
How can i get arguments from Remapping???

#6
[eluser]tomcode[/eluser]
Code:
function _remap($method)
{
    // $method defaults to index

    $segments = $this->uri->segment_array();
}

see also the URI Class


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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