o0ozinkyo0o Posted November 13, 2013 Share Posted November 13, 2013 (edited) Hello, I'm a new Prestashop and now i Want to create a new Tab in Catalog name is Example. It's as same as with tab Products. And i created controller file AdminExampleController.php in /controllers/admin and create tab Example in adminstrator interface. But when i click on tab Example it show blank page, nothing content. What's wrong or miss? Thanks code in AdminExampleController.php <?php class AdminExampleControllerCore extends AdminController { public function __construct() { $this->table = 'example'; $this->className = 'Example'; $this->lang = false; $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fieldsDisplay = array( 'id_example' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Title'), 'width' => 130), ); parent::__construct(); } public function renderForm() { $this->fields_form = array( 'legend' => array( 'title' => $this->l('Examples'), 'image' => '../img/admin/example.gif' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Title:'), 'name' => 'name', 'size' => 33, 'required' => true, 'desc' => $this->l('Example name'), ), ), 'submit' => array( 'title' => $this->l(' Save '), 'class' => 'button' ) ); return parent::renderForm(); } } Edited November 13, 2013 by o0ozinkyo0o (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 13, 2013 Share Posted November 13, 2013 But when i click on tab Example it show blank page turn on error reporting, then you will see what exactly doesnt work Link to comment Share on other sites More sharing options...
Recommended Posts