Location: PHPKode > scripts > DCC class > dcc-class/include/class.main.inc
<?
class module extends dcc {

 function main($arg) {
       	$result  = $this->summon("/template/header.htm");
	$result .= $this->summon("/content/".$arg);
        $result .= $this->summon("/template/footer.htm");

        $this->content = $result;
 }

 function summon($name) {
	return ereg_replace("\r", "", implode("", file($this->baseDir.$name)));
 }

}
?>
Return current item: DCC class