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

[eluser]Tottys Design[/eluser]
[quote author="Colin Williams" date="1258509759"]Sorry about that. I posted mine before seeing your response.

You could achieve 2 and 3 with simple routing rules:

Code:
$route['([a-z]{2})/gal([^\/]*)'] = "gallery/$1";

Then take care of #1 in the gallery controller constructor, where $this->uri->segment(1) is the language code.[/quote]

No problem. I know but I don't want to work with routers because I can add new categories and then I should make them available in different languages, and i have to mod always the route file.

Look at the code I have to use to get the controller name, then this should dispatch the action to that controller, but how?-I really don't know. Here I share my code:
(in the next post)


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