Asked 3 years ago
16 Jun 2021
Views 882
Jules

Jules posted

print an array in prestashop

i am working at prestashop ,
Prestashop uses smarty as a template engine, so my question is how to print array in Prestashop or smarty?
jagdish

jagdish
answered Jun 16 '21 00:00

in controller suppose you add $_GET

        $this->context->smarty->assign('get',$_GET); 


than to print array at template at prestashop or smarty

{$get|print_r} 


Done !!
Post Answer