<?php namespace vendor\laravel\framework\src\Illuminate\Support\Facades;
use DB;
use BaseController;
class ModuleController extends BaseController{
public function index()
{
//Display data from students table.
$data=DB::connection('mysql')->select('select * from students');
}
}
錯誤消息:致命錯誤:類 'BaseController' 用C未找到:\ XAMPP \ htdocs中\ laravel \上線test.php的6基本控制器沒有發現laravel PHP
那是什麼命名空間? – jszobody 2015-03-13 16:03:02
可能重複[Laravel 4從命名空間控制器找不到BaseController](http://stackoverflow.com/questions/18687464/laravel-4-cant-find-basecontroller-from-namespaced-controller) – tlenss 2015-03-13 16:05:31
laravel 4或5 ? – itachi 2015-03-13 17:15:03