Welcome Guest, Not a member yet? Register   Sign In
Cart library: how to extend library class regex validation without messing with the core?
#2

[eluser]Pascal Kriete[/eluser]
It's a public variable - so you can change it to anything you want.
Code:
$this->load->library('cart');
$this->cart->product_name_rules = 'ponies';

Or you could [url=http://ellislab.com/codeigniter/user-guide/general/core_classes.html]extend the library[/code] and just set it in there, which will then be in effect globally.


Messages In This Thread
Cart library: how to extend library class regex validation without messing with the core? - by El Forum - 10-12-2009, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB