Reputation: 1220
I have a condition for price filtering products in codeigniter...
When user clicks on filter button, lower & higher value as well as that category id of that page is sent to controller...
Now, when user is on that page and clicks on another next page (In pagination).. those all values are gone... how can i set them globally so that even when user goes for next page those lower,higher value and category ids i can use again...
I am using codeigniter's pagination library...
Upvotes: 2
Views: 4997
Reputation: 110
file location - Application -> Config -> constants.php here you can define global variable
define('BASE_PATH',"/home/example/public_html/");
define('UPLOAD_PATH',BASE_PATH . 'uploads/');
//this is your global variable, can use anywhere in application
echo $UPLOAD_PATH;
Upvotes: 2