Depending on a $_GET parameter, called module, I get to know which php file i have to include and execute. Every file contains a special module class to work with. Since the $_GET param is of the same name as the include file I can easily include it by
Code: Select all
<?php
require($_GET['module'].".php")
?>Code: Select all
<?php
$module = new $_GET['module'].".php";
$_GET['module']->doMethod();
?>Any Idea , how to instantiate objects by just knowing their name ?
regards _yak