Alternative $this->config>set_item($item, $value) |
Thanks for the reply. It seems that it didn't work to push array to my public $item = [...];. Here's my code:
app\config\Packages PHP Code: <?php namespace Config; app\Controllers\Test PHP Code: <?php namespace App\Controllers; The output should show nuxt.js, jquery.js, idk.js, and vue.js. But instead, it just show only vue.js. In real case, I really want to dynamically add Javascript files to footer page. I have this helper works on CI3, but I'm still confused how can I make it work on CI4-rc. Thank you! ------- (12-01-2019, 06:38 PM)dave friend Wrote: All the config files are classes where all the properties are public. That means that once you create an instance of a config you can modify the properties however you see fit. |
Messages In This Thread |
Alternative $this->config>set_item($item, $value) - by simonickalexs - 12-01-2019, 10:20 AM
RE: Alternative $this->config>set_item($item, $value) - by dave friend - 12-01-2019, 06:38 PM
RE: Alternative $this->config>set_item($item, $value) - by simonickalexs - 12-01-2019, 09:16 PM
RE: Alternative $this->config>set_item($item, $value) - by freddy.cruze - 02-02-2021, 09:07 AM
RE: Alternative $this->config>set_item($item, $value) - by paulbalandan - 02-02-2021, 09:56 AM
|