Я пытаюсь получить ссылку на заказ, используя свой модуль,
Вот моя функция модуля
public function hookDisplayAdminOrder($params) {
$this->context->smarty->assign(array('order' => $params['objOrder']));
return $this->display(__FILE__, 'smartB.tpl');
}
И вот как я пытаюсь получить переменную
<div class="panel">
<div class="panel-heading">
<i class="icon-truck"></i>
{l s='Something'}
</div>
<div class="tab-content panel">
<h4 class="visible-print">{l s='Something'}</h4>
{$order|@var_dump}
</div>
The output is NULL, should print an array. Sorry for a stupid question or bad English!