[eluser]TheFuzzy0ne[/eluser]
Sorry, I totally misunderstood what you are asking to do.
For now, here's a replacement for what you're using. It should do the same thing with a lot less effort.
Code:
public function _remap($method, $params)
{
$_params = array();
for ($i = 0; isset($params[$i]); $i += 2)
{
if (isset($params[$i + 1]))
{
$_params[$params[$i]] = $params[$i + 1];
}
}
get_instance()->params =& $_params;
if(method_exists($this, $method))
{
return call_user_func_array([$this, $method], $params);
}
$this->index();
}
I'm using MXHMVC, and $this->uri->uri_to_assoc() is working fine for me, hence why I'm a little confused about what you're trying to do. I'm pretty new to the whole HMVC-thing, but as far as I'm aware, the module name in the URI pretty much replaces the controller name, so the URL format is identical to what it would have been if you weren't using HMVC.
If you can explain in more detail what it is you are trying to do, and what it's meant to achieve, we might be able to offer you a much more straight-forward solution. Any examples of the URI and some example code illustrating what's not working in your current setup, and the result you are expecting would help a lot.
Sorry for being dense... It's the end of a long day.