|
本帖最后由 andyzu 于 2017-11-20 14:36 编辑
class C_login extends CI_Controller
{
//官方给的写法,构造函数
public function __construct()
{
parent::__construct();
$this->load->helper('url');
}
public function index()
{
echo bese_url();
}
}
运行后,提示:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function bese_url()
Filename: /Applications/XAMPP/xamppfiles/htdocs/company/application/controllers/C_login.php
Line Number: 29
Backtrace:
File: /Applications/XAMPP/xamppfiles/htdocs/company/index.php
Line: 315
Function: require_once |
|