Render login template
com_bat
com_bat 2018-03-12 00:48:14
0
5
1568





<?php

namespace app\index \controller;

use app\index\controller\Base;(Import 'app\index\controller\Base' is not necessaryUsage of statement use was not found.)class Index extends Base
{
public function index()
{
return $this -> view -> fetch();
}
}

Under the controller An error occurred in index.php. Import 'app\index\controller\Base' is not necessary, Usage of statement use was not found.

is the same as the video code, the login template cannot be rendered, and all the methods of the Q&A community have been changed. It doesn't work even if I try it

com_bat
com_bat

reply all(4)
com_bat

The problem has been solved because the pseudo-static under Apache is not turned on (under the .htaccess file)# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L) is changed to RewriteRule ^(.* )$index.php? /$1 [QSA,PT,L) can

  • reply There are only three words "deny from all" in my .htaccess file. . . How to change this
    Lipuor author 2019-02-23 12:21:26
sky

Namespace error!

lge

Did you write Base?

  • reply Base was written by me
    com_bat author 2018-03-12 17:27:43
com_bat

Teacher, and also changed //use app\index\controller\Base; to Import 'app\index\controller\Base'; also doesn't work

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