Laravel 5.0 Documentation
Contents iii. Controllers i. Introduction ii. Basic Controllers iii. Controller Middleware iv. Implicit Controllers v. RESTful Resource Controllers vi. Dependency Injection & Controllers vii. Route namespace. This default namespace can be quickly changed using the new app:name Artisan command. Controllers, middleware, and requests (a new type of class in Laravel 5.0) are now grouped under the app/Http $request, PostRepository $posts) { // } User registration, authentication, and password reset controllers are now included out of the box, as well as simple corresponding views, which are located at0 码力 | 242 页 | 1.44 MB | 1 年前3Laravel 3.2 Documentation
........................................................................................ 22 Controllers............................................................................................... ................................................................................. 23 Bundle Controllers .............................................................................................. ................................................................................. 24 Nested Controllers ..............................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 1.3. Annotated Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 1.5.5. Links to Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 1.9.2. Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 259 页 | 3.58 MB | 1 年前3CakePHP Cookbook 2.x
Cases The IRC channel Official CakePHP Forum Stackoverflow Where to get Help in your Language Controllers The App Controller Request parameters Controller actions Request Life-cycle callbacks Controller Useful Methods Controller Attributes $components, $helpers and $uses Other Attributes More on controllers Request and Response objects CakeRequest CakeResponse Scaffolding The Pages Controller Components Plugins Plugin Configuration Advanced Bootstrapping Using a Plugin How To Create Plugins Plugin Controllers Plugin Models Plugin Views Plugin Assets Components, Helpers and Behaviors Expand Your Plugin Plugin0 码力 | 1096 页 | 958.62 KB | 1 年前3Learning Laravel
Exception 39 Chapter 10: Constants 40 Examples 40 Example 40 Chapter 11: Controllers 41 Introduction 41 Examples 41 Basic Controllers 41 Controller Middleware 41 Resource Controller 42 Example of how directory 68 Override Application class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Eloquent 70 Introduction 70 Remarks 70 Examples 70 Introduction 70 core-parts of the framework which work https://riptutorial.com/ 2 together: models, views and controllers. Controllers are the main part where most of the work is done. They connect to models to get, create0 码力 | 216 页 | 1.58 MB | 1 年前3CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4 Controllers 43 The App Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 More on controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 able to access that at www.example.com/posts/foobar. Warning: You may be tempted to name your controllers and actions a certain way to obtain a certain URL. Resist that temptation. Follow CakePHP conventions0 码力 | 820 页 | 2.52 MB | 1 年前3Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.4. Annotated Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 1.10.2. Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Applications can use one or the other module or, in some cases, both — for example, Spring MVC controllers with the reactive WebClient. 1.1. Overview Why was Spring WebFlux created? Part of the answer0 码力 | 182 页 | 2.52 MB | 1 年前3Laravel 5.1 中文文档
function(){ // Controllers Within The "App\Http\Controllers\Admin" Name space Route::group(['namespace' => 'User'], function() { // Controllers Within The "App\Http\Controllers\Admin\Us Namespace });}); 默认情况下,RouteServiceProvider 包含 routes.php 并指定其所在命名空间,因此,我们 只需要指定命名空间的 App\Http\Controllers 之后的一部分。 4.3 子域名路由 路由群组还可以被用于子域名路由通配符,子域名可以像 URIs 一样被分配给路由参数,从 而允许捕获子域名的部分用于路由或者控制器,子域名可以通过群组属性数组中的 制器存放在 app/Http/Controllers 目录中。 2、基本控制器 下面是一个基本控制器类的例子。所有的 Laravel 控制器应该继承自 Laravel 安装默认的基 本控制器: Controllers; use App\User; use App\Http\Controllers\Controller;0 码力 | 307 页 | 3.46 MB | 1 年前3Laravel 5.2 中文文档
'Admin'], function(){ // 控制器在 "App\Http\Controllers\Admin" 命名空间下 Route::group(['namespace' => 'User'], function(){ // 控制器在 "App\Http\Controllers\Admin\User" 命名空间下 }); }); 默认 默认情况下,RouteServiceProvider 引入 routes.php 并指定其下所有控制器类所在的默 认命名空间 App\Http\Controllers,因此,我们在定义的时候只需要指定命名空 间 App\Http\Controllers 之后的部分即可。 子域名路由 路由群组还可以被用于子域名路由通配符,子域名可以像 URI 一样被分配给路由参数, 从而允许捕获子域名的部分用于 将所有的请求处理逻辑都放在单个 routes.php 中显然是不合理的,你也许还希望使用控制 器类组织管理这些行为。控制器可以将相关的 HTTP 请求封装到一个类中进行处理。通 常控制器存放在 app/Http/Controllers 目录中。 2、基本控制器 下面是一个基本控制器类的例子。所有的 Laravel 控制器应该继承自 Laravel 自带的控制 器基类 Controller: 本文档由 Laravel0 码力 | 377 页 | 4.56 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283 10 Controllers 285 The App Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 More on Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764 Plugin Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3
共 790 条
- 1
- 2
- 3
- 4
- 5
- 6
- 79