Need advice regarding layout/index.volt

I'm little bit confuse why phalcon read layout/index.volt instead of index/index.volt. And if i will rename index.volt into something.volt in layout, phalcon reads the index/index.volt.

It should read both. First the layout to get the layout, and then the action view.

Be sure to have {{ content() }} in your layout.volt, so that it knows where to fill in the content of the controller/action (in your case index/index).



214

It should read both. First the layout to get the layout, and then the action view.

Be sure to have {{ content() }} in your layout.volt, so that it knows where to fill in the content of the controller/action (in your case index/index).

I don't understand :(, I created index.volt under views/layouts. Now by default, phalcon ignores views/index/index.volt. Can you explain why? I'm very new to phalcon and got so many question.