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

Could I develop Phalcon website with multiple templates?

Hello,

I want to develop Phalcon website with multiple templates. However, I didn't see any articles on how to do this. Could you guide me?

Thanks for your support,



12.1k

I've realized a multisite structure based on many variables. Maybe somenthing simpler can be done. In this topic we have spoken about: https://forum.phalcon.io/discussion/12677/multisite-set-up-with-shared-views-controllers-and-models You can find how I've structured my multisite templates. I've done a lot of modifies since that topic, biut I think it can be enough to start. My base idea is to have always a common template and override it in templates dirs. The final aim is to have also controllers overridable but in this moment i need only the view engine in multisite.