How do I define a global variable after the Codeigniter instantiation? |
You would need to either place it in the BaseController or create a library for it using static variable.
Or use Events, see below: CodeIgniter 4 User Guide - Events What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(08-31-2021, 04:04 AM)InsiteFX Wrote: You would need to either place it in the BaseController or create a library for it using static variable. Thanks, but I'm using CI 3
Then you can use a hook lookup hooks in the user guide.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |