Пример #1
0
 /**
  * main action
  */
 public function mainAction()
 {
     if ($customer_data = $_POST['client']['customer']) {
         require_once 'models/client/client_customer.php';
         $Customer = new client_customer();
         if ($id = $Customer->registerCustomer($customer_data)) {
             onxshop_flush_cache();
             onxshopGoTo("/backoffice/customers/{$id}/detail");
         } else {
             msg("Cannot add user", 'error');
         }
     }
     return true;
 }