Welcome Guest, Not a member yet? Register   Sign In
url haendling for a cms
#7

[eluser]Davcon[/eluser]
Hi. Thanks for your response. I really appreciate it.

I have investigated your solutions and have decided not to go with any of them. Here's what I discovered:

* YOUR FIRST SUGGESTION:
Suggestion: change .htaccess and force folks to go to the pages controller.
Problem: Sometimes I might not want everyone to automatically go to the pages controller. For example, if it's an online shop or an online forum then there may be other types of controllers that I'd want to use.

* YOUR SECOND SUGGESTION:
Suggestion: load pages controller as the default.
Problem: Although it does indeed load the custom pages controller when you go to the homepage, the moment I add 'forward slash anything' to the URL, it freaks out and attempts to load other controllers.

-----------------------------------------

There will be times when I don't want to load the pages controller so I guess that's the big challenge I have.

-----------------------------------------

I can tell you that I've found a solution to this problem. It's a rather crude and simplistic solution but it seems to be working.

* MY SOLUTION
Suggestion: add the name of each custom page to a database table. Then, in the routes script, connect to the database and add whichever names have been added to the route[] array.
Pros: It works. Not only that but it allows me to mix and match any kinds of URLs that I want.
Cons: At the point when the routes script runs, there appears to be no connection to the database, so I have to manually connect to the database on the routes script. This is slightly messy and I'd feel a lot better if I never had to do that.


Thanks again for your help. I owe you one.


Messages In This Thread
url haendling for a cms - by El Forum - 05-23-2010, 08:19 AM
url haendling for a cms - by El Forum - 05-24-2010, 04:16 AM
url haendling for a cms - by El Forum - 05-24-2010, 09:24 AM
url haendling for a cms - by El Forum - 05-25-2010, 08:40 AM
url haendling for a cms - by El Forum - 07-06-2010, 06:10 AM
url haendling for a cms - by El Forum - 07-06-2010, 07:23 AM
url haendling for a cms - by El Forum - 07-06-2010, 09:38 AM
url haendling for a cms - by El Forum - 07-06-2010, 09:53 AM
url haendling for a cms - by El Forum - 07-06-2010, 10:14 AM
url haendling for a cms - by El Forum - 07-06-2010, 10:17 AM
url haendling for a cms - by El Forum - 07-06-2010, 10:59 AM
url haendling for a cms - by El Forum - 07-06-2010, 11:38 AM
url haendling for a cms - by El Forum - 07-06-2010, 08:25 PM
url haendling for a cms - by El Forum - 11-05-2010, 01:57 PM
url haendling for a cms - by El Forum - 11-09-2010, 07:23 AM
url haendling for a cms - by El Forum - 11-09-2010, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB