CodeIgniter Forums

Full Version: How change uri_to_assoc like this...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
by default

Code:
$this->uri->uri_to_assoc(3)
index.php/user/search/name/joe/location/UK/gender/male

[array]
(
    'name' => 'joe'
    'location' => 'UK'
    'gender' => 'male'
)

i want like this:


Code:
$this->uri->new_uri_to_assoc(3)
index.php/user/search/name:joe/location:UK/gender:male

[array]
(
    'name' => 'joe'
    'location' => 'UK'
    'gender' => 'male'
)