我想了解Laravel 4:
\控制器\ catalogs.php
class Catalogs_Controller extends BaseController {
public function get_index(){
return View::make('catalogs')->with('title', 'Catalog - Home');
}
}
routes.php文件
Route::get('/', array('as'=>'home', 'uses'=>'[email protected]'));
\意见\布局\默认.blade.php
<!DOCTYPE html>
<html>
<head>
<title>{{ $title }}</title>
.....
</html>
\ view \ catalogs \ index.blade.ph p
@extends('layouts.default')
@section('content')
Home Page
@endsection
但我有一个错误: “类目录不存在”。 哪里可能是问题?
谢谢,我明白了,现在它的工作。 –
如果问题得到解决,请按我的答案接受(箭头绿色在左边) –