0

I have created a config file named email.php inside application/config folder. Now I want to assign my variable $email_config to all the indexes of the $config variable inside my email.php config file.

I have tried to use $email_config = $this->config->config; but this will get all the indexes values of $config variable from every config files under the config folder..I don't want that, I only want the indexes values inside my email.php file

Vickel
  • 7,879
  • 6
  • 35
  • 56
  • `$this->config->config`: this approach doesn't exist in CI, could you please try to explain better what you are trying to achieve? Please read about the [CI Config Class](https://codeigniter.com/userguide3/libraries/config.html) – Vickel Mar 21 '22 at 20:33
  • @Vickel This is not entirely true, approx. 10 years ago the full config was still available in this way. – adampweb Mar 22 '22 at 08:40
  • @Vickel I found that solution from a old post in stackoverflow..not sure how it works, but it just worked hahahaha – Bryan Chai Mar 23 '22 at 03:36

0 Answers0