We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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>



43.9k

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)