KBD

Keith Devens .com

Sunday, March 21, 2010 Flag waving
I have the strength of a bear... that has the strength of two bears! – Sealab 2021

Archive: July 25, 2004

← July 23, 2004July 26, 2004 →

Daily link icon Sunday, July 25, 2004

How I do templating on my site

<?php
function template($name$args=NULL){
    
$er error_reporting(E_ALL&~E_NOTICE&~E_WARNING);
    
extract($argsEXTR_REFS);
    
$return = include(TEMPLATE_DIR.'/'.$name.'.php');
    
error_reporting($er);
    return 
$return;
}
?>

That's it.

← July 23, 2004July 26, 2004 →
March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 3 posts

Recent comments XML

new⇒Spider solitaire

I to am somewhat addicted to​spending too much time on SS.  I​have been stu...

stupid_horse: Mar 20, 10:34pm

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.043s.

(Used 7 db queries)