The Definitive Guide to Yii 1.0
. . . . . . . . . . . . . . . . . 135 7. 6. 6 I n t e r c e p t i n g R e m ot e M e t h od I n v oc at i on . . . . . . . . . . . . . . . . 136 7. 7 I n t e r n at i on al i z at i on . . . . . . . e , t h i s l i s t of c on d i t i on s an d t h e f ol l ow i n g d i s c l ai m e r i n t h e d oc u m e n t at i on an d /or ot h e r m at e r i al s p r ov i d e d w i t h t h e d i s t r i b u t v e G ui de t o Y i i T h i s t u t or i al i s r e l e as e d u n d e r t h e T e r m s of Yi i D oc u m e n t at i on . Al l R i gh t s R e s e r v e d . 2008- 2009 c op y ; Yi i S of t w ar e LLC0 码力 | 164 页 | 1002.30 KB | 1 年前3
The Definitive Guide to Yii 1.1
. . . . . . . . . . . . . . . . . 153 8. 6. 6 I n t e r c e p t i n g R e m ot e M e t h od I n v oc at i on . . . . . . . . . . . . . . . . 154 8. 7 I n t e r n at i on al i z at i on . . . . . . . e , t h i s l i s t of c on d i t i on s an d t h e f ol l ow i n g d i s c l ai m e r i n t h e d oc u m e n t at i on an d /or ot h e r m at e r i al s p r ov i d e d w i t h t h e d i s t r i b u t v e G ui de t o Y i i T h i s t u t or i al i s r e l e as e d u n d e r t h e T e r m s of Yi i D oc u m e n t at i on . Al l R i gh t s R e s e r v e d . 2008- 2009 c op y ; Yi i S of t w ar e LLC0 码力 | 184 页 | 1.05 MB | 1 年前3
The Laravel Handbook
database 8. Adding a better layout 9. Adding the form at the bottom of the list 10. Allow users to delete dogs from the list 11. Adding authentication using Laravel Breeze 12. Only authenticated users Each model represents a specific table in the database, and we use it to create, read, update and delete records. Create the model from the terminal with this command: php artisan make:model Dog 27 model is a resource, and once you define a model you’ll later be able to create a new resource, delete, update it. Now let’s build a form to add a new dog to the database. Let’s add a new entry to0 码力 | 111 页 | 14.25 MB | 1 年前3
CakePHP Cookbook 2.x
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 going to assume you’re using interact with our database, we’ll have the foundation in place needed to do our view, add, edit, and delete operations later. CakePHP’s model class files go in /app/Model, and the file we’ll be creating will Note $this->request->is() takes a single argument, which can be the request METHOD (get, put, post, delete) or some request identifier (ajax). It is not a way to check for specific posted data. For instance0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook Documentation 5.xSimple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action Migration Guides 5.0 Upgrade Guide Fix Deprecation Warnings Upgrade to PHP 8.1 Use the Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial - Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action Migration Guides 4.0 Upgrade Guide Fix Deprecation Warnings Upgrade to PHP 8.0 Use the Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial - Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging ServerRequest Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 2.x
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 going to assume you’re using interact with our database, we’ll have the foundation in place needed to do our view, add, edit, and delete operations later. CakePHP’s model class files go in /app/Model, and the file we’ll be creating will Note: $this->request->is() takes a single argument, which can be the request METHOD (get, put, post, delete) or some request identifier (ajax). It is not a way to check for specific posted data. For instance0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 3.x
Add Delete Action Next, let’s make a way for users to delete articles. Start with a delete() action in the ArticlesController: // src/Controller/ArticlesController.php public function delete($slug) delete($slug) { $this->request->allowMethod(['post', 'delete']); $article = $this->Articles->findBySlug($slug)->firstOrFail(); if ($this->Articles->delete($article)) { $this->Flash->success(__('The {0} article show the user a confir- mation message after redirecting them to /articles. If the user attempts to delete an article using a GET request, CMS Tutorial - Creating the Articles Controller 25 CakePHP Cookbook0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xvalidation error messages will be shown automatically. Add Delete Action Next, let’s make a way for users to delete articles. Start with a delete() action in the ArticlesController: // src/Controller/ArticlesController method. public function delete($slug) { $this->request->allowMethod(['post', 'delete']); $article = $this->Articles->findBySlug($slug)->firstOrFail(); if ($this->Articles->delete($article)) { $this-> show the user a confir- mation message after redirecting them to /articles. If the user attempts to delete an article using a GET request, allowMethod() will throw an exception. Uncaught exceptions are captured0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action 3.x Migration Guide 3.10 Migration Guide 3.10 Migration Guide 3.9 Migration Guide 3.9 Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial - Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging Request Request Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request0 码力 | 1244 页 | 1.05 MB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













