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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -