1
我想包括一些视图文件我register.phtml
里面,像这样:添加子块register.phtml
Register.phml
<div class="account-create">
<div class="page-title">
<h1><?php echo $this->__('Create an Account') ?></h1>
</div>
.
.
// include another view file here
.
.
</div>
我如何去这样做?
该文件正在包含现在,但包含文件中的代码不起作用。像这样,显示名字文本框的代码不起作用:<?php echo $ this-> getLayout() - > createBlock('customer/widget_name') - > setObject($ this-> getFormData()) - > setForceUseCustomerAttributes(true) - > toHtml()?> – user3243180 2014-12-05 08:17:50