Welcome Guest, Not a member yet? Register   Sign In
** solved ** dynamic routing from database
#3

[eluser]Tottys Design[/eluser]
[quote author="waldmeister" date="1258508147"]Without thinking too much about it I would say no.

The controller that will be loaded is defined by the url/the routing defined in config/routes.php

The "pre_system" or the "pre_controller" controllers could be used to redirect to another url I guess...maybe even hack the routing? Don't know...just a wild guess here.

Why would you need that anyway?[/quote]

I need to make a dynamic multilanguage website, take a look at the urls:

en/gallery/
pt/galeria/
it/galeria/

both should trigger the gallery controller.
1) the params are stored,
2) then converted in the main language (gallery to gallery, and galeria to gallery)
3) load the controller named gallery


Messages In This Thread
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 01:17 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 01:35 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 01:55 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 01:56 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 01:58 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:02 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:09 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:10 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:11 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:22 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 02:26 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 04:51 PM
** solved ** dynamic routing from database - by El Forum - 11-17-2009, 06:32 PM
** solved ** dynamic routing from database - by El Forum - 11-18-2009, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB