Please answer my peculiar problem
I am making a basic CMS currently. I am trying to make it so that user's can easily add on their own modifications, such as you might do to IPB or PHPBB. Well, in a mod file, a user contains a main class, so that I can include it in the core files and not run into variable usage problems. Originally I had it so that the class name was just "default_", but I ran into problems when mods tryed to include other mods into the mod file, since other mods also used the "default_" class name, and it messed up my system. Well, now when a mod is installed I want a database value of the class name to be added, so that when the mod is being access I can simply pull the class to create from the database, and create it. However, that's the problem. How do I create a type of object based off a value. In other words it looks something like:
Code:
$class_name = "Main_class";
$class = new $
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --