PHP学习

1、下载PHP框架核心版

2、在PHPstudy/www下新建项目名称如   mytest

3、把框架内的文件复制粘贴到mytest 文件下

4、配置PHPstudy 

5、文件位置选择到mytest文件、配置host链接   127.0.0.1  www.mytest.com

6、预览链接  http://localhost/cropper1/public/index.php

7、application目录下新建文件夹view,在view下新建index目录。然后index.html放在view/index目录下,如下图

8、配置index.php访问页面

<?php
namespace appindexcontroller;

class Index
{
    public function index()
    {
        return view('index'); //直接使用view助手函数渲染模板输出页面
    }
}

9、  

原文地址:https://www.cnblogs.com/qing1304197382/p/11104199.html