![]() |
is there base_email() or site_email() function ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: is there base_email() or site_email() function ? (/showthread.php?tid=16615) |
is there base_email() or site_email() function ? - El Forum - 03-11-2009 [eluser]runrun[/eluser] Hi, I wonder if there is a base_email() that return the email you specified in one of the configs ? If there is no such thing, would I modify it in the HTML helper file right ? is there base_email() or site_email() function ? - El Forum - 03-11-2009 [eluser]TheFuzzy0ne[/eluser] No. Just add something like this to ./system/application/config/config.php: Code: $config['admin_email'] = '[email protected]'; It will be autoloaded for you for every request, you can access it by calling $this->config->item('admin_email'); is there base_email() or site_email() function ? - El Forum - 03-11-2009 [eluser]runrun[/eluser] I haven't tested it out yet, hope it works, thank you very much. |