OK, earlier today I decided my user_theme system wasn't powerful enough, so I rewrote it, everything is fine, the system works, with 1 problem...NONE OF THE CONTENT IS BEING DISPLAYED!
here is the outline of how the function works
class user
{
function theme($tpl_file = ""){
if(!empty()){
return include($Current_Directory."/Templates/".$themename."/".$tpl_file);
}else{
returns just the name of the theme being used
}
}
}
like i said it works, the templates are being return but none of the content is, here is an example
$article_title = "title";
$article_content = "content";
$user->theme("news.tpl");
the above example would return the templates, but no content. I understand that in most functions you need to also include the variables you are going to be using within the function but, I figured since it was merely returning the include() function I didn't need to do that, and if I MUST have the fields for the content to be included is there away around this?