Welcome Guest, Not a member yet? Register   Sign In
custom users routes? [SOLVED]
#7

[eluser]dootzky[/eluser]
no offense taken my friend Smile

however, I found a way (hack) how to achieve this.

I edited file /libraries/Router.php, and after this line:

Code:
// Fetch the complete URI string
$this->uri->_fetch_uri_string();


// HACK BY DUSHAN
// ----------------------
$store_name_end_pos = strpos($this->uri->uri_string, "/", 1);
$store_name = substr($this->uri->uri_string, 0, $store_name_end_pos);
$store_name = str_replace('/', '', $store_name); // remove all "/"
$this->config->set_item('store_name', $store_name); // so that I could use this later in the code
$this->uri->uri_string = substr($this->uri->uri_string, $store_name_end_pos); // remove this /$store_name/ from CI routes logic

...

I created /libraries/MY_Router.php
so that I could track this change easily in the future, but that's bonus Smile

so far - it's working. Smile

thanks for your help, time, and effort guys, all of you, really. Smile
I hope this will help more users in time.

Cheers,
Dushan


Messages In This Thread
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 07:39 AM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 05:26 PM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 10:29 PM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 07:23 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:19 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:57 AM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:08 PM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:34 PM
custom users routes? [SOLVED] - by El Forum - 08-03-2011, 05:25 PM
custom users routes? [SOLVED] - by El Forum - 08-04-2011, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB