Welcome Guest, Not a member yet? Register   Sign In
Routing and controllers
#1

[eluser]aviator2[/eluser]
Hi guys! I've got a tricky question.
How can I call controllers in other way, than through a URI?

Let's say, I would like to have a URL like this one: example.com/archive/blog/article.html
Basically, archive would be a controller, and blog is a function. But... My intention is to use a "archive/blog" for navigations and "article.html" as content identifier.
So I will probably need some router script that has to decide which controller is associated to this content and load it.

subsequent questions:
- how to solve URI
- how to implement router script
- how to call controllers

Have you got any ideas how to solve this concept?

Thank you so much!

Martin


Messages In This Thread
Routing and controllers - by El Forum - 12-29-2009, 09:27 AM
Routing and controllers - by El Forum - 12-29-2009, 10:01 AM
Routing and controllers - by El Forum - 12-29-2009, 11:48 AM
Routing and controllers - by El Forum - 12-29-2009, 11:49 AM
Routing and controllers - by El Forum - 12-29-2009, 11:51 AM
Routing and controllers - by El Forum - 12-29-2009, 11:54 AM
Routing and controllers - by El Forum - 12-29-2009, 12:05 PM
Routing and controllers - by El Forum - 12-30-2009, 06:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB