CodeIgniter Forums
How change uri_to_assoc like this... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How change uri_to_assoc like this... (/thread-46102.html)



How change uri_to_assoc like this... - El Forum - 10-18-2011

[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'
)