路由结构

学习到的知识
- 通过 redirect()函数进行跳转

- 使用$_SERVER常量来查看系统一些信息
- 一些系统配置
- 用date()函数获取系统时间
date('Y年m月d日 H时i分s秒')
- 修改config(修改系统配置)文件夹下的app.php中的timezone字段来修改时区(PRC)

- 子视图的使用:
- 通过@yield('content')标识可以进行子视图替换的区域
- 通过 @extends('子视图名字')
@section('contents')
新的内容
@endsection

admin.blade.php是公共模板;


url()函数和asset()函数
url()函数用来获取一些动态调用的视图或者资源
在laravel要如果要访问一些视图或者动态调用一些东西要定义一个路由,然后在html文件中的src中用url()函数获取路由地址
url函数
asset()函数用来获取css样式和js。

网友评论