【发布时间】:2013-10-17 23:40:41
【问题描述】:
我得到的错误是
Warning: Phalcon\Mvc\View\Engine\Volt\Compiler::compileFile(../app/views/index/index.phtml.php): failed to open stream: Permission denied in /Users/mattstephens/Sites/magpie/public/index.php on line 26 Phalcon Exception: Volt directory can't be written
我已经像这样在我的引导程序中声明了伏特引擎的使用
$view->registerEngines(array(
'.phtml' => 'Phalcon\Mvc\View\Engine\Volt'
));
我的代码中提到的第 26 行指向如下所示的应用程序句柄函数
echo $application->handle()->getContent();
这是与权限相关的事情还是由于缺少目录?
【问题讨论】:
-
与其他代码相比,我唯一能看到的是 /cache/volt 不在我的目录结构中。
-
在那些
chown之后你需要删除旧的app/cache/*文件(如果有的话),否则它会保持同样的错误。