0
我想擴展Prestashop(1.6.1.1)的form.tpl。爲此我創建了下面的路徑在我的模塊文件夾:PHP Prestashop擴展form.tpl
模塊/ mymodule中/視圖/模板/管理/導出/助手/表格/ form.tpl
和
模塊/mymodule/views/templates/admin/helpers/form/form.tpl
form.tpl
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == "test"}
<div class="form-group">
<input type="text" name="test" class="form-control" placeholder="Te">
</div>
{/if}
{/block}
AdminExportController.php
public function renderForm() {
$this->fields_form = array(
'legend' => array(
'title' => 'test'
),
'input' => array(
'type' => 'test'
)
);
return parent::renderForm();
}
但沒有在我的形式顯示出來:/有什麼建議?