public
Created

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5
$session = Session::instance()->get('orders');
$session[] = array('id' => $get['id'], 'name' => $get['name'], 'price' => $get['price']);
Session::instance()->set('orders', $session);
$this->template->content = 'Товар добавлен в '.html::anchor('basket', 'корзину');

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.