我试图理解 Laravel 4:
\controllers\catalogs.php
class Catalogs_Controller extends BaseController {
public function get_index(){
return View::make('catalogs')->with('title', 'Catalog - Home');
}
}
路由.php
Route::get('/', array('as'=>'home', 'uses'=>'catalogs@index'));
\views\layouts\default.blade.php
<!DOCTYPE html>
<html>
<head>
<title>{{ $title }}</title>
.....
</html>
\view\catalogs\index.blade.php
@extends('layouts.default')
@section('content')
Home Page
@endsection
但我有一个错误:“类目录不存在”。问题可能出在哪里?