Categories CodeIgniter

Validation in CodeIgniter

Step 1 : Make View in view folder as “myform.php” Step 2 : Make controller in controller folder as “Form.php” Step 3 : Make another view in view folder as formsuccess.php to show after successful validation. myform.php file <html> <head> <title>My Form</title> </head> <body> <?php echo form_open(‘form’); ?> <h5>Username</h5> <input type=”text” name=”username” value=”<?php echo set_value(‘username’); […]

Read More
Categories CodeIgniter

Remove index.php from URL in CodeIgniter

Remove index.php from URL in codeIgniter. Open and make .htaccess file in the root and follow these steps. Step 1 : Make .htaccess file in root location i.e along with application folder Step 2 : Write this code into .htaccess file. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]

Read More