Welcome Guest, Not a member yet? Register   Sign In
Routing by POST values
#10

[eluser]xwero[/eluser]
A simple way to use post values to route to controllers is by using a controller as a router
Code:
class Dispatcher extends Controller (Router can't be used as that is the name of the CI class)
{
   function index()
   {
      // post based router
   }
}
Then you can use http://site.com/dispatcher to get to the controllers.

The only problem i see with using POST based urls is that surfers will get a message about resending the post data if they use their browser back button.


Messages In This Thread
Routing by POST values - by El Forum - 09-20-2008, 09:30 AM
Routing by POST values - by El Forum - 09-20-2008, 03:28 PM
Routing by POST values - by El Forum - 09-20-2008, 03:47 PM
Routing by POST values - by El Forum - 09-21-2008, 10:52 AM
Routing by POST values - by El Forum - 09-21-2008, 11:42 AM
Routing by POST values - by El Forum - 09-21-2008, 02:31 PM
Routing by POST values - by El Forum - 09-21-2008, 02:42 PM
Routing by POST values - by El Forum - 09-21-2008, 03:53 PM
Routing by POST values - by El Forum - 09-22-2008, 02:53 AM
Routing by POST values - by El Forum - 09-22-2008, 03:15 AM
Routing by POST values - by El Forum - 09-22-2008, 03:34 AM
Routing by POST values - by El Forum - 09-22-2008, 06:56 AM
Routing by POST values - by El Forum - 09-22-2008, 07:06 AM
Routing by POST values - by El Forum - 09-22-2008, 07:35 AM
Routing by POST values - by El Forum - 09-22-2008, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB