Posts

Showing posts with the label Codeigniter

Creating Template in CodeIgniter 3 Using Bootstrap Theme

Image
We will integrate bootstrap theme with CodeIgniter using layout. We will create own custom layout for CodeIgniter in this tutorial.This is master template which will use to render child view file, like each website template has header, footer and sidebar view which is constant and nothing has been changed between different pages. We will define a master layout which has constant things as its and variable things like inner content will change based on routing or request of page, first question is our mind what will be variable in CodeIgniter layout?, the page title,page content etc, we will use page title and content as a variable into this CodeIgniter tutorial.

Sending Email using Codeigniter

Sending email in CodeIgniter is much easier. You also configure the preferences regarding email in CodeIgniter. CodeIgniter provides following features for sending emails − Multiple Protocols − Mail, Sendmail, and SMTP TLS and SSL Encryption for SMTP Multiple recipients CC and BCCs HTML or Plaintext email Attachments Word wrapping Priorities BCC Batch Mode, enabling large email lists to be broken into small BCC batches. Email Debugging tools

Codeiginter Configuration

Configuring Base URL The base URL of the site can be configured in application/config/config.php file. It is URL to your CodeIgniter root. Typically, this will be your base URL, with a trailing slash e.g. http://example.com/ If this is not set, then CodeIgniter will try to guess the protocol, domain and path to your installation. However, you should always configure this explicitly and never rely on autoguessing, especially in production environments. You can configure the base URL in the $config array with key “base_url” as shown below − $config['base_url'] = 'http://your-domain.com'; Database Configuration The database of the site can be configured in application/config/database.php file. Often we need to set up database for different environment like development and production. With the multidimensional array provided in the CodeIgniter, we can setup database for different environment. The configuration settings are stored in the array as shown below − $d...

How to install CodeIgniter

Image
It is very easy to install CodeIgniter. Just follow the steps given below − Step-1   − Download the CodeIgniter from the link   CodeIgniter There are two different options legacy and latest. The names itself are self descriptive. legacy has version less than 2.x and latest has 3.0 version. We can also go with GitHub and get all of the latest scripts.. Step-2   − Unzip the folder. Step-3   − Upload all files and folders to your server. Step-4   − After uploading all the files to your server, visit the URL of your server, e.g., www.domain-name.com.