For the view content in this chapter, I typed it according to the code in the video, and the created file was also typed according to the video, but why did a page error appear! Please try again later
冷酸灵牙膏
冷酸灵牙膏 2019-06-26 01:07:34
0
3
1379
Code content of

index.php

<?php
namespace app\index\controller;
use think\Controller;
class Index
{
public function index ()
{
Return 'php';
}
Public function Hello ()
{
Return $ This- & GT; fetch ();
} ##}

This is the content of hello.html

<!doctype html>

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum- scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h2>I am the template file corresponding to the hello method in the Index controller in the Index template</h2>
</ body>
</html>

冷酸灵牙膏
冷酸灵牙膏

reply all(2)
木头人

class Index does not inherit Controller

  • reply Yes, it seems there is no inheritance
    冷酸灵牙膏 author 2019-06-30 18:18:51
秋香姐家的小书童

Enable DEBUG to learn detailed error reasons

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template