Jluis Posted May 16, 2019 Share Posted May 16, 2019 salut , je suis en train de générer un fichier pdf à partir d'une custom template , au niveau de la fonction display de mon controlleur front , il affiche l'erreur ci-dessous : ceci est la fonction display : public function display() { //echo"test"; $cart =new Cart(Context::getContext()->cart->id); $cart1 = (object)$cart; $pdfk = new PDF(cart , PDF::TEMPLATE_CART_PRINT, $this->context->smarty,'P'); //var_dump( $pdf); $pdfk->render(); } Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 16, 2019 Share Posted May 16, 2019 et en faisant : public function display() { $cart =new Cart(Context::getContext()->cart->id); $pdfk = new PDF($cart , PDF::TEMPLATE_CART_PRINT, Context::getContext()->smarty); $pdfk->render(); } Link to comment Share on other sites More sharing options...
Jluis Posted May 18, 2019 Author Share Posted May 18, 2019 (edited) de même , j'ai basculé à utiliser TCPDF , j'ai besoin de récupérer les produits du panier $cart =new Cart(Context::getContext()->cart->id); $products = $cart->getProducts(); mais rien n'est affiché Edited May 18, 2019 by Jluis (see edit history) 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