我想創建一個PHP的正則表達式的模板引擎 我的模板引擎是下面的代碼 <?php
class tmp
{
public function assign($name,$val){
$GLOBALS[$name]=$val;
}
public function compile($buffer){
$buffer= '?
嘿,早上好:)。 我將開始與錯誤信息,並事後解釋我已經試過,做: Catchable fatal error: Object of class __TwigTemplate_[64chars] could not be converted to string in /someFolder/lib/Twig/Loader/Filesystem.php on line 139
完整的錯誤消息圖片: