Manage URL routes in own php framework

前端 未结 12 2131
盖世英雄少女心
盖世英雄少女心 2021-02-02 16:34

I\'m creating a PHP Framework and I have some doubts...

The framework takes the url in this way: http:/web.com/site/index

It takes the first paramet

12条回答
  •  北恋
    北恋 (楼主)
    2021-02-02 17:00

    Create /myBaseDirectory/public directory and put your files there - like index.php.
    This works because Apache sees this directory like base directory.

提交回复
热议问题