将整个页面划分成不同的模块, 代码部署: \routes\web.php Route::get('section1',['uses'=>'StudentController@section1']); \app\Http\Controllers\StudentController.php //模板继承 ...
分类:
其他好文 时间:
2020-07-14 18:11:19
阅读次数:
78
1.前后端不分离 (form表单提交) 控制器定义验证规则 <?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class ...
分类:
其他好文 时间:
2020-07-13 13:27:53
阅读次数:
109
111 <?php require("conf/config.php"); if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; if (preg_match("/\d.+?\D.+/is",$id)){ die("Attack detected" ...
分类:
数据库 时间:
2020-07-05 18:55:18
阅读次数:
90
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo ...
分类:
Web程序 时间:
2020-06-26 20:02:21
阅读次数:
61
1.在路由处设置参数name Route::get('/index/{name}','Controller@index'); 2.接收name参数,使用view调用显示html页面 <?php namespace App\Http\Controllers; use http\Env\Request; ...
分类:
其他好文 时间:
2020-06-26 16:49:29
阅读次数:
73
<?php namespace App\Http\Controllers; use http\Env\Request; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\Di ...
分类:
其他好文 时间:
2020-06-26 16:17:10
阅读次数:
84
1 <?php 2 3 4 namespace App\Http\Controllers; 5 6 7 use http\Env\Request; 8 9 class resourceController 10 { 11 public function index(){ // 12 dump("in ...
分类:
其他好文 时间:
2020-06-26 12:59:04
阅读次数:
50
1 <?php 2 namespace App\Modules\Live\Http\Controllers; 3 4 use Illuminate\Http\Request; 5 use Maatwebsite\Excel\Facades\Excel; 6 class ImportControlle ...
分类:
其他好文 时间:
2020-06-24 18:07:10
阅读次数:
64
原因分析: Ah, ok. I thought it was commented out because it caused the error. You can always put a breakpoint in the line printing the error and look at t ...
分类:
其他好文 时间:
2020-06-23 21:48:50
阅读次数:
84
执行命令前确保 app\admin\controllers中没有要创建的controller,在models中确保有这个models文件 php artisan admin:make CeController --model=app\Ce执行时报错Model does not exists !可以将 ...
分类:
其他好文 时间:
2020-06-18 10:34:49
阅读次数:
42