CodeIgniter Forums
CodeIgniter.com - Report problems! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: News & Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=2)
+--- Thread: CodeIgniter.com - Report problems! (/showthread.php?tid=75851)

Pages: 1 2 3 4 5 6 7 8


RE: CodeIgniter.com - Report problems! - SubrataJ - 03-09-2022

(03-09-2022, 12:27 AM)InsiteFX Wrote: CodeIgniter 4 uses Events instead of Hooks. So you want to read up on the CodeIgniter 4 Event system.

Hello, Thanks for the help, I understand now how it works, but I am trying to get these settings available globally, 

Code:
ErrorException
Creating default object from empty value
APPPATH/Config/Events.php at line 58

52 Events::on('pre_system', static function () {
53    $configs = Database::connect()
54                    ->query('SELECT * FROM setting ')
55                    ->getResult();
56    foreach($configs as $config)
57    {
58        config($config->setting_type)->{$config->name} = $config->value;
59    }
60 });

I have theese three fields in my table seting_type has simmilar value, name and value has respective value. could you plese tell me what I am doing wrong here?



RE: CodeIgniter.com - Report problems! - InsiteFX - 03-10-2022

Please read this.

CodeIgniter 4 User Guide -> Generating Query Results -> Result Arrays


RE: CodeIgniter.com - Report problems! - alexandervoco - 03-15-2022

(03-10-2022, 01:03 AM)InsiteFX Wrote: Please read this.

CodeIgniter 4 User Guide -> Generating Query Results -> Result Arrays

Thanks! I've looking for this for a while now


RE: CodeIgniter.com - Report problems! - koinemas88 - 04-21-2022

thanks


RE: CodeIgniter.com - Report problems! - Swenyly - 07-21-2022

Report problem is a necessity to monitor and can fix for next time 
fleeing the complex


RE: CodeIgniter.com - Report problems! - demyr - 01-19-2023

Why are there some irrelevant posts under this thread?


RE: CodeIgniter.com - Report problems! - ashaggy - 01-19-2023

(01-19-2023, 12:36 AM)demyr Wrote: Why are there some irrelevant posts under this thread?

There are irrelevant posts in all threads and mods are OK with that (answering or ignoring them).


RE: CodeIgniter.com - Report problems! - kenjis - 06-22-2023

This is the thread for reporting problems with the site https://codeigniter.com/.

Please do not post anything irrelevant to this thread.
If you do post, you will be banned.


RE: CodeIgniter.com - Report problems! - kenjis - 08-31-2023

This is where you report problems with the official website (https://codeigniter.com/).

Please do not post anything irrelevant to this thread.
If you do post, you will be banned.


RE: CodeIgniter.com - Report problems! - Harry Lyre - 03-25-2025

The issue might be on the website's end. You can try disabling browser extensions, clearing both cache and site data, and using Incognito or Private mode to bypass stored data. Using a different DNS provider or checking your internet connection might help. If the problem persists, testing on a different network (e.g., mobile data) or contacting the website's support team could be the next steps.