html - Why Have index.php in URI in CodeIgniter Call -
codeigniter gives example blog.php
<?php class blog extends ci_controller { public function index() { echo 'hello world!'; } }
and calls by
example.com/index.php/blog/
question why have index.php in uri?
you want know why there index.php in url? there simple answer, request under codeigniter given index.php resolves controller. 1 usally use mod_rewrite masks index.php. php interpreter not have concept of controller, maps uri file , gives post , parameters. need file which translates uri in controller call.
Comments
Post a Comment