当前位置:网站首页>The construction and usage of wampserver framework

The construction and usage of wampserver framework

2022-06-25 04:55:00 Two kings lead two teams

frame :thinkphp ( The default is single application mode )

url analysis :

Multiple applications :http://serverName/index.php/ application / controller / operation / Parameters / value ...

Single application :http://serverName/index.php/ controller / operation / Parameters / value ...

Such as :http://localhost/tp6/public/index.php/test/hello/value/world

(index.php It can be omitted ,Apache Will help you write )

Compatibility mode :http://localhost/tp6/public/?s=test/hello/value/world

Frame building :

1, download wampserver,composer Setup

2,composer Found during configuration wamserver Of php Environmental Science

3, open wampserver , Choice and composer Selected during configuration php Environmental Science ( Here is 7.3.12)

4, Build the framework :

Command line open wampserver In the folder www Folder , Input :

composer creat-project topthink/think tp6(tp6 It's your file name .)

5, Update your project file version ( Some errors can be fixed

You can do it yourself Enter the file you created , Input again :

composer update topthink/farmworke

6, Command line input php think run Run the framework you build

 ctrl+c Close the connection .

At this point, you can enter... In the browser http://localhost/tp6/public By entering the framework of your website , Later you can use phpstorm Write your website functions .

Website function compilation : Create... In the framework of the website you created php file , Write your own code .  A simple example , This is not the point !!!

原网站

版权声明
本文为[Two kings lead two teams]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210531285927.html