{% extends ,.....%} How to write??

I create a volt,it extends the base.volt {% extends '../../../../tpl/user/default/public/base.volt' %} But I wan't to write the long string,So i $this->view->setVar('USERTPL','../../../../../../tpl/user/default/');in the controller, I don't how to use the USERTPL in the {% extends ,.....%} How to write?? thank you!!!



18.5k

Did you tried {% extends USER_TPL %}?



4.2k

Did you tried {% extends USER_TPL %}? en I tried,It's false.

For what reason u are putting your templates in directory public and not within the views directory ???

For example, if your base.volt are in directory views/templates you extends like {% extends "templates/base.volt" %}