“Proper” separation/difference between index.php and front controller

前端 未结 3 1008
终归单人心
终归单人心 2020-12-16 05:46

For a PHP MVC application, what is the difference of the job of the index.php file and front-controller? Is the front-controller in the index.php,

3条回答
  •  遥遥无期
    2020-12-16 06:10

    You really should read up on the structure of MVC, specifically when used with PHP. Initialize an instance of front-controller in index.php, and it should render your page if that process is part of the front-controller initialization procedure (__constructor()).

提交回复
热议问题