具有智能的无脂肪框架

Fat-Free framework with Smart

我们正在开发一个使用 Fat-Free PHP 框架的应用程序,我们希望使用 Smart 作为模板引擎。

我们已经关注了http://www.smarty.net/docs/en/installing.smarty.basic.tpl

我们 运行 Smarty 测试,没有错误,但是现在当我们想通过 Fat-Free PHP 框架通过 Smarty 显示模板时,我们只会从 Fat-Free 中得到错误。

这是路线

    $f3->route('GET /', function($f3) {
        $smarty->assign('name','Ned');
        $smarty->debugging = true;
        $smarty->display('index.tpl');
    });

谁能指导我正确的方法?

找到 sulotion,必须包括 smarty 变量。