php - Why codeigniter shopping cart class doesn't allow any special character in the name? -


I have a question like the title - why codeigniter does not allow any special character in the shopping cart category name? When I'm adding some items to the common name with the common name, it only works as a charm. However, if I add something, say, "word / word" or something like that it will not add anything to the shopping cart, if someone looks at the car, can someone give me some pointers on it? ?

Php let you line 31 var $ product_name_rules = '\. \: \ -_a-z0-9 '; .

A good way to change this variable is putting a MY_Cart.php on your application \ libraries \ MY_Cart.php with this code:

   

  $ this-> Cart- & gt; Product_name_rules = '[:]  

Or you can also modify it when adding product: print:]'; $ This- & gt; Cart- & gt; Insert (array ());


Comments