Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $cart = array();
  2. $cart['items'][] = array(
  3. 'action' => $app->input->get('action', 'add', 'STRING'),
  4. 'domain_name' => $app->input->get('chosen_domain', '', 'STRING'),
  5. 'chosen_plan' => $app->input->get('chosen_plan', '', 'STRING'),
  6. 'chosen_location' => $app->input->get('chosen_location', '', 'STRING'),
  7. 'chosen_type' => $app->input->get('chosen_type', '', 'STRING'),
  8. 'chosen_id' => $app->input->get('chosen_id', '', 'INT'),
  9. 'chosen_period' => $app->input->get('chosen_period', '', 'INT')
  10. );
  11. $session = JFactory::getSession();
  12. $session->set('cart', $cart);
  13. $cart_result = $session->get('cart');
  14.  
  15. echo "<pre>" . print_r($cart_result, TRUE) . "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement