hello coders!
i want to definde a new include function. or easier a function that calls the include function. i need it for a small template system, where i desine some plazeholder variables and then include the template...
now i want to make the site skinable. so when i include the template i must add the $skin Variable to the path of the template-file and check for its existens... if it not exist i would include a normal template that exist.
my problem is when i define a function like this,
function gen_tpl($path){
include($path);
}
i could not find my plazeholders, because they are not global. but how can i make all Variables global?! (the include function can do this...)
can anybody help me?!
thx mischerman