Matthieu_ Posted August 22, 2017 Share Posted August 22, 2017 Hi, i am creating a module on Presta 1.7.2, i would like to add a table of products in the admin product section (with the hook displayAdminProductsExtra). This is a simplified version of my code public function hookDisplayAdminProductsExtra($params) { $products = MyModel::getProducts(); $helper = new HelperList(); $helper->shopLinkType = ''; $helper->simple_header = true; $helper->identifier = 'id'; $helper->show_toolbar = true; $helper->title = 'HelperList'; $helper->table = $this->name . '_mytable'; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name; return $helper->generateList($products, array( 'id' => array( 'title' => 'ID', 'type' => 'text' ), 'name' => array( 'title' => 'Nom', 'type' => 'text' ) )); } It generate the following error : Twig_Error_Runtime in form.html.twig line 951: An exception has been thrown during the rendering of a template ("Unable to load template file 'helpers/list/list_header.tpl'"). The template file exists, i tried to do some debugging in HelperList class, but no luck so far. Anyone can help ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now