view->setTemplateAfter is not working

This is my proyect, it was created with phalcon devtools.

I am trying to keey in every view the options menu and footer. But I could not succeded. I will appreciate your help. The controller is LoginController and I am trying to get the content hierarchically from the index.volt / the template main.volt / the LoginController index.volt and everything in between.

Why dont you use partials inside your layout to include your menu and footer ?