Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB