<?php
namespace Admin\Controller;
use Think\Controller;
use Think\Model;
use Think\Verify;
class IndexController extends Controller {
public function Index(){
$this->assign("title","网站后台");
$this->display();
}
public function check(){
if(IS_POST){
if(!check_verify($verify)){
$this->error('验证码输入错误!');
}
}
}
public function Verify(){
$Verify = new \Think\Verify();
$Verify->entry();
}
public function check_verify($code){
$verify = new \Think\Verify();
return $verify->check($code);
}
}我写的代码,当提交时执行check就报错:(
Call to undefined function Admin\Controller\check_verify()
错误位置
FILE: J:\www\xcai\Application\Admin\Controller\IndexController.class.php LINE: 16
ThinkPHP3.2.2 { Fast & Simple OOP PHP fr
这究竟是为什么呢?
最佳答案