Carabiner:缓存路径不存在。请在config / carabiner.php中设置缓存路径

时间:2012-10-08 15:20:33

标签: codeigniter

我正在使用代码iginiter。当我尝试从本地浏览器运行我的应用程序时,这个错误就会丢失。

Carabiner: cache path does not exist. Please set the cache path in config/carabiner.php.

我不知道它是什么。试过一些在线类似的解决方案,如:

http://www.webdevelopersdiary.com/1/archives/06-2012/1.html

但出于某种原因似乎没有任何作用。请帮我解决这个问题。

1 个答案:

答案 0 :(得分:2)

在第50行创建config/carabiner.php中指定的缓存目录。

默认设置:$config['cache_dir'] = 'assets/cache/';

请记住,cache_dir路径相对于文档根目录(来自CI的FCPATH; index.php所在的位置)。在初始化时,FCPATHcache_dir会连接在一起,从而生成cache_path

摘自图书馆:
 $this->cache_path = $this->fcpath.$this->cache_dir;

<强>更新
您需要创建assets/cache目录,该目录位于您的应用程序根目录中,具有写入权限:mkdir -p assets/cache && chmod -R 777 assets/cache

最后,它将如下所示:

$ tree
.
|____application
|____assets
| |____cache
|____index.php
|____system
|____user_guide

相关问题