2013-07-05 38 views

回答

1

只需獲取模板並捕獲異常。

try { 
    $template->fetch("test.tpl"); 
} 
catch (Exception $e) { 

} 

你可以把它放在一個返回你需要的函數中。