通过本章的学习,了解了MVC架构的原理,当客户端请求数据时,先通过controller控制器判断是哪种请求类型,再像model请求分发,model通过业务逻辑的处理,把数据返还给controller,...
796
<table> <tr > <td>ID</td> <td>姓名</td> <td>性...
177
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <...
295
<?php namespace app\validate; use think\Validate; class Books extends V...
237
1.更改php.ini文件 session.use_cookies = 1 是否session使用cookies方式保存 1为使用...
416
<?php //后期静态绑定(延迟静态绑定)用在静态继承的环境中 //动态匹配静态成员的调用者,而不是声明者 //在运行阶段确定 //定义一个父类 class Father { /...
343
{*导入公共头部文件*}{include file="public/header.html" assign="header"}{$header}{*导入公共头部...
265
模板继承主要使用: 1.@extends('模板路径') 继承模板,将模板内容加载到文件中 ...
526
本章主要学习了MVC的架构原理,并通过配置简单的路由,实现类到路由方法的映射,代码如下:<?php /**路由类*/ namespace pong; class Rout...
410
入口文件 require './config/config.php'; require './db/contact.php'; require&nb...
318
<?php/** * Created by PhpStorm. * User: Administrator * Date: 2019-01-18 * Time: 22:47 */namespac...
294
一.创建模型 php artisan make:model models/GoodsModel 在app/models里创建一个GoodsMo...
739
layout.html <!DOCTYPE html> <html lang="en"> <head> &nb...
219
一.新增操作public function insert() { $res = DB::table('g...
317
因为redis官网没有redis的windows版本,所以到指定网址下载,对下载文件进行解压,之后课将redis文件通过cmd命令打开,也可以双击...
453