We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

why the volt would auto include the 'index.volt'

why the volt would auto include the 'index.volt' ? I don't like Phalcon auto include this index.volt . How to set up ?

index.volt content: <!DOCTYPE html> <html> <head> <title>Phalcon PHP Framework</title> </head> <body> {{ content() }} </body> </html>


hhmm, I'm not sure that I understand exactly your question.

Usually most websites use <html><head>...</head><body> ...<body></html> tags So, index.volt, looks IMHO quiet well (pre)formatted ;-) But, if it doesn't fit your needs, you can customize it the way you like it! And if you need more flexibility in the template rendering, this part of the documentation could help you: https://docs.phalcon.io/en/latest/reference/views.html#using-templates

I get it . Thank you ! Your understanding is right . I'm chinese . (My English is poor)