我想为/views
使用 phalcon volt 引擎的每个页面创建一个带有页眉和页脚的通用模板
我的文件夹层次结构如下
/views
/user
register.volt
/layouts
header.volt
footer.volt
我想同时获取代码header.volt
和footer.volt
页面register.volt
这是代码header.volt
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-full">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand">Payroll</a>
</div>
<div class="collapse navbar-collapse navbar-right">
<ul class="nav navbar-nav">
<li>item 1</li>
</ul>
</div><!--/.nav-collapse -->
</div>
这是代码footer.volt
<div class="footer">
<div class="container container-full">
© Custom 2014
</div>
</div>
这是代码register.volt
<div class="register-contents">
//register form going here
</div>