To remove index.php from URL in codeigniter, we create ".htaccess" and place it in root directory of codeigniter.
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
Sample file structure given below.
Note:In mycase CodeIgniterFolder is main folder.
We will perform CURD(Create Read Update Delete) operation using CodeIgniter framework. We will use following step to perform CURD operation.
To build our application we will use Model Controller View (MVC) pattern.
CodeIgniter uses Active Record Class for database action.Active Record Class is based on minimal scripting.