Welcome Guest, Not a member yet? Register   Sign In
Calling method of other class
#9

[eluser]bapobap[/eluser]
CI routes need to be defined for each resource I set up, the way I was doing it meant if the file someone was asking for didn't exist, the request was denied.

Also, CI doesn't seem to like GET vars, so something like http://api.website.com/login?username=blablabla had to be defined in routes as:

Code:
$route['login']                        = 'login';
$route['login:any']                    = 'login';
$route['login/:any']                    = 'login';

as I didn't want to enable querystrings or anything like that.

I guess you are right though, I should have just followed conventions instead of re-writing the rulebook.


Messages In This Thread
Calling method of other class - by El Forum - 06-19-2010, 06:14 PM
Calling method of other class - by El Forum - 06-20-2010, 12:57 AM
Calling method of other class - by El Forum - 06-20-2010, 03:07 AM
Calling method of other class - by El Forum - 06-20-2010, 03:15 AM
Calling method of other class - by El Forum - 06-20-2010, 03:19 AM
Calling method of other class - by El Forum - 06-20-2010, 03:24 AM
Calling method of other class - by El Forum - 06-20-2010, 03:38 AM
Calling method of other class - by El Forum - 06-20-2010, 03:49 AM
Calling method of other class - by El Forum - 06-20-2010, 03:56 AM
Calling method of other class - by El Forum - 06-20-2010, 03:58 AM
Calling method of other class - by El Forum - 06-20-2010, 04:32 AM
Calling method of other class - by El Forum - 06-20-2010, 04:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB