In this recipe, we will create a multi-module application with both a web and CLI environment. We first use the CLI environment to precompile the Volt
templates for the web environment while taking care to avoid difficult-to-solve edge cases and then we will use the web environment to displaying our precompiled templates. This approach is useful for increasing the performance of a website while also allowing us to set the permissions of our Volt cache
directory to be unwritable by the web server. This is useful because compiled Volt
templates are essentially phtml fragments and it is a good idea to never allow the web server to generate executable code.
This recipe uses the Phalcon Developer Tools, which we will use to set up a project skeleton. We will not need a database for this recipe. This recipe will make advanced use of Phalcon modules and CLI and web integration.