We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Change Volt tmp folder - (Volt directory can't be written)

Hi all,

I'm a Phalcon beginner, so forgive me if It's an obvious problem but I couldn't find any clear answer. I've just created a new project with the phalconTools, and I get the "Volt directory can't be written" error. (Phalcon 1.3.4 + centos7)

I've checked & deactivated selinux, tried to change permissions on "some" folders... not working. So, I was wondering where/how to configure Volt and choose what folder(s) to use.

Thanks.



2.1k
Accepted
answer
edited Feb '15

make sure ur cache folder is 777 i believe

$volt->setOptions(array(
                        'compiledPath' => APPLICATION_PATH."/../cache/", // << this line
                        'compiledSeparator' => '_',
                        'compileAlways' => true

                ));


24.8k

Thnaks guys, was helpful.