Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make CI URI accept dash in all segments. #53

Closed
bitbucket-import opened this Issue · 1 comment

2 participants

@bitbucket-import

Hi,

I have MY_Router extension, but i think it's good idea to implement it in CI.

My code:

{{{
#!php

class MY_Router extends CI_Router
{
function set_request($segments = array()) {
parent::_set_request(str_replace('-', '
', $segments));
}
}
}}}

@philsturgeon

Absolutely not, that is random and very ambiguous, but you can do that with routes or use the extended code you have there. That is the fun of people able to extend classes! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.