CakePHP Cookbook 2.x
Editing Posts Deleting Posts Routes Conclusion Simple Authentication and Authorization Application Creating all users’ related code Authentication (login and logout) Authorization (who’s allowed to access following: public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', 'login' => 'cakeBlog', 'password' => 'c4k3-rUl3Z', 'database' /posts/view/1. Adding Posts Reading from the database and showing us the posts is a great start, but let’s allow for adding new posts. First, start by creating an add() action in the PostsController: class PostsController0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654 Simple Authentication and Authorization Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665 Simple the following: public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => false, 'host' => 'localhost', 'port' => '', 'login' => 'cakeBlog', 'password' => 'c4k3-rUl3Z', 'database' => 'cake_blog_tutorial' AllowOverride All # Order deny,allow # Deny from all For users having apache 2.4 and above, you need to modify the configuration file for your httpd.conf or virtual host configuration to look0 码力 | 820 页 | 2.52 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 CMS Tutorial - Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Bookmarker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Blog Tutorial - Authentication and Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 5 Contributing Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 3.x
Articles By Tags Improving the Tagging Experience Auto-populating the Tag String CMS Tutorial - Authentication Adding Password Hashing Contributing Documentation Translations Documentation Formatting (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP Cache Shell AuthComponent Suggested Reading Before Continuing Authentication Choosing an Authentication Type Configuring Authentication Handlers Customizing Find Query Identifying Users and Logging Them0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 4.x
Improving the Tagging Experience Auto-populating the Tag String CMS Tutorial - Authentication Installing Authentication Plugin Adding Login Logout Enabling Registrations CMS Tutorial - Authorization (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Data Host and Domain Name Reading the HTTP Method Restricting Which HTTP method an Action Accepts Reading HTTP AuthComponent AuthComponent Suggested Reading Before Continuing Authentication Choosing an Authentication Type Configuring Authentication Handlers Customizing Find Query Identifying Users and Logging Them0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 CMS Tutorial - Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 CMS Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Blog Tutorial - Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 5 Contributing Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 880 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3Falcon v3.0.1 Documentation
'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description, Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart workers when it detects a code change, and 'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description,0 码力 | 1058 页 | 741.59 KB | 1 年前3Falcon v3.0.0 Documentation
'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description, Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart workers when it detects a code change, and 'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description,0 码力 | 1055 页 | 739.30 KB | 1 年前3Falcon v3.0.0-b2 Documentation
'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description, Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart workers when it detects a code change, and 'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description,0 码力 | 1041 页 | 730.21 KB | 1 年前3Falcon v3.0.0-b1 Documentation
'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description, Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart workers when it detects a code change, and 'Please request a new token and try again.') raise falcon.HTTPUnauthorized(title='Authentication required', description=description,0 码力 | 1028 页 | 725.86 KB | 1 年前3
共 80 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8