![]() |
02-03-2024, 06:07 AM
(This post was last modified: 02-03-2024, 06:43 AM by adrianovaroli. Edit Reason: Added code example ) (02-02-2024, 06:57 PM)kenjis Wrote: See https://codeigniter.com/user_guide/gener...s-for-data Yes, I don't see anything in there that relates to my question. If you meant Quote:"You cannot add a property that is not defined in the Config class, nor can you change it to an array if the value of the defined property is a scalar." the property in the original *is* an array. I just want to define a different array in my .env file. An example of what I'm trying to do: app/Config/Logger.php contains PHP Code: public $threshold = [1, 2, 3, 4]; PHP Code: logger.threshold.0 = 1 in a controller's method, I added PHP Code: log_message('error', 'test error'); and when that method is called, writable/logs/log-2024-02-02.log only shows PHP Code: ERROR - 2024-02-02 18:21:31 --> test error |
Messages In This Thread |
Using numerically indexed arrays in .env file - by adrianovaroli - 02-02-2024, 11:26 AM
RE: Using numerically indexed arrays in .env file - by kenjis - 02-02-2024, 06:57 PM
RE: Using numerically indexed arrays in .env file - by adrianovaroli - 02-03-2024, 06:07 AM
RE: Using numerically indexed arrays in .env file - by kenjis - 02-03-2024, 05:14 PM
RE: Using numerically indexed arrays in .env file - by kenjis - 02-03-2024, 05:17 PM
RE: Using numerically indexed arrays in .env file - by adrianovaroli - 02-04-2024, 06:39 AM
RE: Using numerically indexed arrays in .env file - by pippuccio76 - 03-12-2025, 01:58 AM
RE: Using numerically indexed arrays in .env file - by grimpirate - 03-16-2025, 01:57 PM
RE: Using numerically indexed arrays in .env file - by pippuccio76 - 03-17-2025, 01:49 AM
RE: Using numerically indexed arrays in .env file - by grimpirate - 03-17-2025, 08:29 PM
RE: Using numerically indexed arrays in .env file - by beifeng111 - 04-15-2025, 01:22 AM
|