Laravel 3.2 DocumentationEloquent natively supports all of the methods from Laravel's Fluent query-builder. Application Logic can be implemented within your application either using controllers (which many web-developers are links site-wide. Restful Controllers are an optional way to separate your GET and POST request logic. In a login example your controller's get_login() action would serve up the form and your controller's side-navigation view that contains a list of random blog posts. Your composer would contain the logic to load the blog posts so that all you have to do i load the view and it's all ready for you. This0 码力 | 139 页 | 1.13 MB | 1 年前3
CakePHP Cookbook 2.x
getting and installing CakePHP, creating and configuring a database, and creating enough application logic to list, add, edit, and delete blog posts. Here’s what you’ll need: 1. A running web server. We’re Controller Next, we’ll create a controller for our posts. The controller is where all the controlling logic for post interaction will happen. In a nutshell, it’s the place where you play with the models and $this->Post->find('all')); } } By defining function index() in our PostsController, users can access the logic there by requesting www.example.com/posts/index. Similarly, if we were to define a function called0 码力 | 1096 页 | 958.62 KB | 1 年前3
Falcon v0.3.0.1 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note Same as for HTTPError. 5.3.6 Middleware Components Middleware components provide a way to execute logic before the framework routes each request, after each request is routed but before the target responder pass def on_get(self, req, resp): pass Falcon middleware components can also be used to insert logic before and after requests. However, unlike hooks, middleware components are triggered globally for0 码力 | 77 页 | 311.34 KB | 1 年前3
Falcon v1.0.0 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note entire resource like so: @falcon.before(extract_project_id) class Message(object): # ... Similar logic can be applied globally with middleware. (See falcon.middleware) 5.2. User Guide 29 Falcon Documentation header in the response. 5.3.7 Middleware Components Middleware components provide a way to execute logic before the framework routes each request, after each request is routed but before the target responder0 码力 | 87 页 | 348.15 KB | 1 年前3
Falcon v0.2.0 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note Same as for HTTPError. 5.3.5 Middleware Components Middleware components provide a way to execute logic before the framework routes each request, after each request is routed but before the target responder pass def on_get(self, req, resp): pass Falcon middleware components can also be used to insert logic before and after requests. However, unlike hooks, middleware components are triggered globally for0 码力 | 70 页 | 296.15 KB | 1 年前3
Falcon v0.3.0.1 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note » Classes and Functions » Middleware Components Middleware components provide a way to execute logic before the framework routes each request, after each request is routed but before the target responder def on_get(self, req, resp): pass Falcon middleware components can also be used to insert logic before and after requests. However, unlike hooks, middleware components are triggered globally for0 码力 | 126 页 | 345.09 KB | 1 年前3
Falcon v1.1.0 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note entire resource like so: @falcon.before(extract_project_id) class Message(object): # ... Similar logic can be applied globally with middleware. (See falcon.middleware) To learn more about hooks, take Location header in the response. 6.3.7 Middleware Middleware components provide a way to execute logic before the framework routes each request, after each request is routed but before the target responder0 码力 | 113 页 | 426.53 KB | 1 年前3
Falcon v1.2.0 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note start by factoring out the business logic from the resource’s POST responder in images.py so that it can be tested independently. In this case, the resource’s “business logic” is simply the image-saving operation: image_store = ImageStore('.') return create_app(image_store) As you can see, the bulk of the setup logic has been moved to create_app(), which can be used to obtain an API object either for testing or for0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 Documentationnormalizes incoming URI paths to simplify later processing and improve the predictability of application logic. In addition to stripping a trailing slashes, if any, Falcon will convert empty paths to “/”. Note start by factoring out the business logic from the resource’s POST responder in images.py so that it can be tested independently. In this case, the resource’s “business logic” is simply the image-saving operation: 6.2. User Guide 35 Falcon Documentation, Release 1.2.0 As you can see, the bulk of the setup logic has been moved to create_app(), which can be used to obtain an API object either for testing or for0 码力 | 134 页 | 498.46 KB | 1 年前3
Laravel 5.0 Documentation
command. * * @return void */ public function handle() { // Handle the logic to purchase the podcast... event(new PodcastWasPurchased($this->user, $this->podcast)); This new architecture allows for the easier construction of similar global traits, and a cleaner separation of concerns within the framework itself. More information on the new SoftDeletingTrait may 'User', function() { throw new NotFoundHttpException; }); If you wish to use your own resolution logic, you should use the Router::bind method. The Closure you pass to the bind method will receive0 码力 | 242 页 | 1.44 MB | 1 年前3
共 64 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













