自定义控制器继承

浏览:811 发布日期:2016/01/21 分类:求助交流 关键字: 自定义控制器
自定义控制器:
<?php

namespace Component\Controller;
use Think\Controller;

class AdminController extends Controller{
public function __construct() {
parent::__construct();
}
}

这是要继承自定义控制器的控制器:
<?php
namespace Admin\Controller;
use Component\Controller\AdminController;

class UserController extends AdminController{
public function login(){
if(!empty($_POST)){
$verify=new \Think\Verify();
.....}}

结果就报页面错误,这是为什么?
最佳答案
评论( 相关
后面还有条评论,点击查看>>