{{ content() }} Vokuro Example

Hi guys,

In the Vokuro example it seems {{content()}} is doing nothing. I have erased and nothing has changed. Besides, why some views like about don't use it?

Can someone explane it to me please?

https://github.com/phalcon/vokuro/blob/master/app/views/about/index.volt https://github.com/phalcon/vokuro/blob/master/app/views/index/index.volt


edited Nov '16

Vokuro Bootstrap defines:

    echo $application->handle()->getContent();

Which will output content.


edited Nov '16

For the controller-action view the {{content()}} call should display content that was set somewhere in the controller like {{$this->view->setContent("blah")}}. In this case the controller is not setting anything and so it is empty.