how to define Global variable in codeigniter?

ravi

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...

karthik

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;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to define a global variable(value) in codeIgniter

From Dev

How to define global variable for Twig

From Dev

How to define global variable inside a function?

From Dev

How to define Global variable outside class?

From Dev

How to define a global variable in LLVM and use it in C?

From Dev

How to define global variable in PL/SQL in Oracle?

From Dev

C - How to define a global variable using a loop?

From Dev

How to define global variable inside a function?

From Dev

How to define global template variable in AngularDart

From Dev

how to define a global variable inside linux kernel?

From Dev

How to use global variable in PHP Codeigniter

From Java

Define global variable with webpack

From Dev

Define global variable in JQuery

From Dev

Codeigniter global variable in view

From Dev

How to define variable of unknown type global in if/else sequence?

From Dev

How to define jade as a global variable in node.js Express?

From Dev

How do a define a global variable in the ember-cli environment?

From Dev

How to define a global variable in a busy ASP.NET MVC

From Dev

How do I define a global variable in React Native?

From Java

Define global variable in a JavaScript function

From Dev

Define global variable inside a function

From Dev

Define global variable inside a function

From Dev

Codeigniter: Define JSON variable in controller

From Dev

CodeIgniter counter using "global" variable

From Dev

How can I correctly define a global variable with a query that has global variables in it aswell?

From Dev

How to define a global function in scala?

From Dev

How to define global function in Python?

From Dev

How to define a global array in python

From Dev

How to define global parameters in OpenAPI?

Related Related

  1. 1

    How to define a global variable(value) in codeIgniter

  2. 2

    How to define global variable for Twig

  3. 3

    How to define global variable inside a function?

  4. 4

    How to define Global variable outside class?

  5. 5

    How to define a global variable in LLVM and use it in C?

  6. 6

    How to define global variable in PL/SQL in Oracle?

  7. 7

    C - How to define a global variable using a loop?

  8. 8

    How to define global variable inside a function?

  9. 9

    How to define global template variable in AngularDart

  10. 10

    how to define a global variable inside linux kernel?

  11. 11

    How to use global variable in PHP Codeigniter

  12. 12

    Define global variable with webpack

  13. 13

    Define global variable in JQuery

  14. 14

    Codeigniter global variable in view

  15. 15

    How to define variable of unknown type global in if/else sequence?

  16. 16

    How to define jade as a global variable in node.js Express?

  17. 17

    How do a define a global variable in the ember-cli environment?

  18. 18

    How to define a global variable in a busy ASP.NET MVC

  19. 19

    How do I define a global variable in React Native?

  20. 20

    Define global variable in a JavaScript function

  21. 21

    Define global variable inside a function

  22. 22

    Define global variable inside a function

  23. 23

    Codeigniter: Define JSON variable in controller

  24. 24

    CodeIgniter counter using "global" variable

  25. 25

    How can I correctly define a global variable with a query that has global variables in it aswell?

  26. 26

    How to define a global function in scala?

  27. 27

    How to define global function in Python?

  28. 28

    How to define a global array in python

  29. 29

    How to define global parameters in OpenAPI?

HotTag

Archive