In CodeIgniter, sending e-mail is a simple process. First the library is loaded. Then the user provides e-mail related data. Finally, the E-mail is sent. Here is how E-mail is sent using a Controller in CodeIgniter
Load the E-mail library of CodeIgniter
Provide set of characters that are to be permitted in the E-mail address.
In this guide, you will learn to use CSS and JS files by calling them from the VIEW (not the controller). In the coming lessons, I will also write on importing assets using Controller but here, we are using views.
First, install Codeigniter using the method as described here.
Then make your own homepage using the method explained here.
Now that we are set up, lets get started!
Go to your Codeigniter folder and add a folder called assets such that it should look like this yourwebsite/assets/ For reference, look at the following
Inside /assets/ create three folders which should look like this
CSS folder named css
In the css folder, create style.css
Go to your homepage and paste the following in the <head> tag.
Please note that this guide is applicable on using XAMPP. For web server, you may have different folder paths for example: