Hey there DaniWeb!
I have been working a little bit on a framework, and i've came to a little problem:(
I want my URL's to be like CodeIgniters where it'll be:
site.com/modulename/function/arg1/arg2/arg3 and so on..
and i was thinking it could be be done with something like this (pseudo-code):
$args = array();
foreach($_GET as $g) {
if($g == "arg" . (WILDCARD / NUMBERS ONLY)) {
$args[] = $g;
}
}
$module = $_GET['m'];
$function = $_GET['f'];
require_once($module . ".php");
$m = new $module;
echo $m->$function(Some way to make all args in here with commas);
Could anyone possible come up with something like that? ^^
Thanks for reading, and i hope you understand my idea! :-)