If you are using Codeigniter (CI) then you will happy to know that, CI has a built in method named _remap which allows you to overwrite the behavior of calling your controller methods over URI. Usually the second segment of the URI determines which function in the controller gets called.
Now think about the following factors:
- You want
If you are using Codeigniter you are noticed that by default index.php will be included with your URL.
But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like:http://anmsaiful.net/blog/contact
To do this just follows the following steps:
- If a method can be static, declare it static. Speed improvement is by a factor of 4
- echo is better than print
echo( ‘CHECKMATE: PLAY with PROBLEMS’ );
// is better than
print( ‘CHECKMATE: PLAY with PROBLEMS’ );
- Use echo’s multiple parameters instead of string concatenation