[PHP] Templating help

2001-01-10 Thread Cameron
ok, im working on a simple and fast templating system for the website im recreating at the moment. im trying to make it so as the template file can be opened into a variable before it is passed to the parsing section so as i dont have to open the file 100 times etc. im not using fasttemplates beca

Re: [PHP] Templating help

2001-01-10 Thread Rasmus Lerdorf
> $template_file = "".$template_root."".$template_file.""; What are those empty strings supposed to do? This is the same thing: $template_file = $template_root.$template_file; > return implode("",(@file($template_file))); Ack! That's horrible. Do this instead: