我很难把CI和Smarty联系起来。我用这手册制作所有东西,但是当我尝试打开一个页面时,我看到:
致命错误: Uncaught > Smarty:无法在第129行的/opt/lampp/htdocs/ci/application/libraries/smarty/libs/sysplugins/smarty_internal_templatebase.php中加载模板文件'view/index.tpl‘<-
在哪里可以更改目标文件夹?
我还想添加,我在视图文件夹中创建了一个视图文件。
发布于 2015-05-01 22:04:02
那本手册用于CodeIgniter 2。更新到CodeIgniter 3并遵循以下步骤:
$this->custom_smarty->display('test.tpl');sudo chmod -R 777 templates_c。如果您发现无法写入文件的错误,请与您的主机服务联系。首先,确保存在templates_c文件夹。发布于 2014-12-21 09:31:24
好吧我找到了。它是视图/模板,但我有一个新的错误消息。
致命错误: Uncaught > Smarty:无法在第46行的application/views/compiled/wrt549692a6e7c983_16652543中写入文件/opt/lampp/htdocs/ci/application/libraries/smarty/libs/sysplugins/smarty_internal_write_file.php <-引发
我创建了一个视图/编译文件夹,但是智能不能使它们文件(?)(?)
编辑。好吧,一切都好。我没有几个文件夹的权限。
https://stackoverflow.com/questions/27588143
复制相似问题