Name: Anonymous 2012-08-14 0:02
Hey,
At the moment I'm creating something like a CMS (Content Managment System) in PHP.
I have a switch - clause to go through all the index.php?p=[something] - links, like 20 cases in the index.php
Other CMS I know solve that problem via redirecting index.php?p=x automatically x.php (or automatically calling template for x), but I want to go some other way.
Is there anway way to create a switch-clause dynamically via a CSV File / MySQL Database with eval?
I already tried it, but I failed.
Any ideas?
At the moment I'm creating something like a CMS (Content Managment System) in PHP.
I have a switch - clause to go through all the index.php?p=[something] - links, like 20 cases in the index.php
Other CMS I know solve that problem via redirecting index.php?p=x automatically x.php (or automatically calling template for x), but I want to go some other way.
Is there anway way to create a switch-clause dynamically via a CSV File / MySQL Database with eval?
I already tried it, but I failed.
Any ideas?