Smarty异常消息:属性'data'不存在

时间:2013-10-29 18:11:09

标签: php smarty slim

我一直收到这个错误:

  

类型:SmartyException消息:属性'data'不存在。   文件:   d:\工作\的Apache \ htdocs中\ anvelopebv.ro \ Smarty的\ sysplugins \ smarty_internal_templatebase.php   行:810

我不知道问题是什么:(

require 'Smarty/Smarty.class.php';
$smarty = new Smarty;

$smarty->setTemplateDir('../Templates/');
$smarty->setCompileDir('../Templates/Compiled');
$smarty->setCacheDir('../Templates/Cache');
$smarty->setCacheDir('../Templates/Configs');

$smarty->debugging = true;

require 'Slim/Slim.php';
\Slim\Slim::registerAutoloader();

$app = new \Slim\Slim(array(
    'view' => $smarty  
));

$app->get('/', function() use ($app) {
    $app->render('home.tpl', array('test' => 'works'));
});

$app->run();

0 个答案:

没有答案