KBD

Keith Devens .com

Friday, August 29, 2008 Flag waving
Well, "actual" compliance means bug-free. That's hard to assure in a system of the size of a CL.... – Kent M. Pitman
← Mozilla adds document.all supportKerry's pitch (and Presidential sports) →

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.

← Mozilla adds document.all supportKerry's pitch (and Presidential sports) →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



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

Recent comments XML

new⇒Johnny Walker Blue Label

Wow, thanks for the scotch review​:D

Lagavulin and Laphroaig are​some of...

Keith: Aug 29, 3:35pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.14s.

(Used 8 db queries)

mobile phone