public function add() { $objCart = new cart($this->registry->db, $_POST); $objCart->save(); header('Location: http:index.php?p=cart/show'); }