CI does't see the configuration email.php |
[eluser]mitring[/eluser]
Hi, I have problem with configuration a email class: myfile: application\config\email.php Code: $config['mailtype'] = 'html'; and now: Code: var_dump($this->email->mailtype); I tried Email.php / email.php CI: 1.7.2 WAMP: 2.0 Win7 Pro x64 Best regards Peter
[eluser]slowgary[/eluser]
Hi Peter, When you assign $config = array(), you wipe out the previous value of $config. Also, you'll need to call the initialization function somewhere... Code: $this->email->initialize($config); I recommend you read the user guide to better understand how CodeIgniter works... http://ellislab.com/codeigniter/user-gui...email.html http://ellislab.com/codeigniter/user-gui...onfig.html Also, for better answers to your questions, try posting a more complete code sample next time. I hope this helps!
[eluser]mitring[/eluser]
Thanks, your answer is correct my mistake. Thanks Reg Peter |
Welcome Guest, Not a member yet? Register Sign In |