![]() |
Why carts library doesnt support polish dialectic signs??? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Why carts library doesnt support polish dialectic signs??? (/showthread.php?tid=38155) |
Why carts library doesnt support polish dialectic signs??? - El Forum - 01-31-2011 [eluser]penta997[/eluser] Hi. I have problem with cart library. When I want to add items from database: Code: function addCards($id=1) var_dump displaing correct value, not empty. But when i call showCards function: Code: function showCarts() there is no data witch include polish dialectic signs and I can add only 4 records to carts library. How can I fix it? Please, help Why carts library doesnt support polish dialectic signs??? - El Forum - 01-31-2011 [eluser]penta997[/eluser] I was fixed a 4 records limit. I was only changed in config file :$config['sess_encrypt_cookie'] to False. But still i cant add items with polish signs. I was changed var $product_name_rules in cart.php file to '\.\:\-_ a-z0-9///^[a-zA-ZąęćżźńłóśĄĆĘŁŃÓŚŹŻ\s]+$/'; But didnt work. Why carts library doesnt support polish dialectic signs??? - El Forum - 02-01-2011 [eluser]Isern Palaus[/eluser] If you look on Cart.php you will see on line 31 var $product_name_rules = '\.\:\-_ a-z0-9';. A nice way to change this variable is putting a MY_Cart.php on your application\libraries\MY_Cart.php with this code: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Or you can also modify it when you add the product, using: Code: $this->cart->product_name_rules = '[:print:]'; This should work! :-) Why carts library doesnt support polish dialectic signs??? - El Forum - 02-01-2011 [eluser]penta997[/eluser] It works, but now I have another problem. I was created sessoion table ci_session and when i call addCards function the sesssion expired immediately. But is not a carts falt. When I added too many data to sesstin data even without using carts library, the sesstion expired too. |