Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions 5.4 - Determine URI segment of method
#1

[eluser]Aeisor[/eluser]
Is there any easy way to determine the index value of the method that has been called using MX? Before MX I had used
Code:
$CI->uri->uri_to_assoc(n);
where n was either 3 or 4 depending on if
Code:
method_exists($this, $method)
was true or false; However, with MX I also need to factor in module directories.

I used this to create an array of key=>value pairs from the request, without using ?key=value&key2=value2

I had a quick look in the code, but nothing jumped out. I could just not be looking hard enough.


Messages In This Thread
Modular Extensions 5.4 - Determine URI segment of method - by El Forum - 04-28-2013, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB