Pass a Parameter to a Class in CodeIgniter

kendraowolves

New Member
I'm still learning my way around PHP and CodeIgniter, but I'm trying to set up an email controller. The only problem is that most tutorials show how to set up the email.php controller, but hardcode the email address and message.In the project I'm working on, I will be sending emails for many things (registration, password reset, etc...). How could I set up the email controller to accept parameters and how would I load it from another controller?
 
Back
Top