Closed piotrfilipek closed 7 years ago
Is that the correct path? Is it supposed to have a / between home and www? Nevermind! I just double checked your full path name!
There are several places you can check for the configured cache.
In your application/config/config.php
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
In the constructor of your Twig file.
In my case, this file has the path application/libraries/Twig.php and I have the following config there:
$this->config = [
'paths' =>array(VIEWPATH),
'cache' => APPPATH . 'cache/twig',
'auto_reload' => true
];
cache directory exists and I setted permissions but it still doesn't work.
Please run the following command and show the result:
$ ls -l /usr/home/pfilipek/homewww/ci3-doctrine/application/cache/twig/
Hi, I want to display prepared twig template, but app shows me a message that unable to create cache directory.
cache directory exists and I setted permissions but it still doesn't work.