0
我爲自定義模塊控制器創建模板。這些代碼:prestashop中的Helperform 1.5.6.2
class SolrBrigdeIndexciesController extends ModuleAdminController{
public function __contruct(){
$this->className = 'Configuration';
$this->table = 'configuration';
parent::__contruct();
$this->fields_form = array(
'legend' => array(
'title' => $this->l('By order status'),
//'image' => '../img/admin/pdf.gif'
),
'input' => array(
array(
'type' => 'checkbox',
'label' => $this->l('Statuses:'),
'name' => 'id_order_state',
'values' => array(
'query' => OrderState::getOrderStates($this->context->language->id),
'id' => 'id_order_state',
'name' => 'name'
),
'desc' => $this->l('You can also export orders which have not been charged yet.').' (<img src="../img/admin/charged_ko.gif" alt="" />).'
)
),);
}
public function initContent()
{
$this->content .= $this->renderForm();
$this->context->smarty->assign(array(
'content' => $this->content,
'array1' => OrderState::getOrderStates($this->context->language->id),
'url_post' => self::$currentIndex.'&token='.$this->token,
));
}
}
但是,當我訪問該控制器的形式沒有顯示:該頁面是空 請幫幫我。感謝高級