 CakePHP Cookbook Documentation 5.xFormatters Localizing Dates and Numbers Parsing Localized Datetime Data Converting Request Data from the User’s Timezone Automatically Choosing the Locale Based on Request Data Translate Content/Entities Logging as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email'0 码力 | 1080 页 | 939.39 KB | 1 年前3 CakePHP Cookbook Documentation 5.xFormatters Localizing Dates and Numbers Parsing Localized Datetime Data Converting Request Data from the User’s Timezone Automatically Choosing the Locale Based on Request Data Translate Content/Entities Logging as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email'0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.xas saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email' $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled data. Being separate from the Model objects, it is responsible for using the information0 码力 | 848 页 | 2.53 MB | 1 年前3 CakePHP Cookbook Documentation 5.xas saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email' $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled data. Being separate from the Model objects, it is responsible for using the information0 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 2.x
CakePHP framework provides a robust base for your application. It can handle every aspect, from the user’s initial request all the way to the final rendering of a web page. And since the framework follows make the app/tmp directory writable by the webserver. The best way to do this is to find out what user your webserver runs as. You can run inside any PHP file your webserver execute. You should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp0 码力 | 1096 页 | 958.62 KB | 1 年前3 CakePHP Cookbook 2.x
CakePHP framework provides a robust base for your application. It can handle every aspect, from the user’s initial request all the way to the final rendering of a web page. And since the framework follows make the app/tmp directory writable by the webserver. The best way to do this is to find out what user your webserver runs as. You can run inside any PHP file your webserver execute. You should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp0 码力 | 1096 页 | 958.62 KB | 1 年前3
 CakePHP Cookbook 2.x
CakePHP framework provides a robust base for your application. It can handle every aspect, from the user’s initial request all the way to the final rendering of a web page. And since the framework follows make the app/tmp directory writable by the webserver. The best way to do this is to find out what user your webserver runs as. You can run inside any PHP file your webserver execute. You should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp0 码力 | 820 页 | 2.52 MB | 1 年前3 CakePHP Cookbook 2.x
CakePHP framework provides a robust base for your application. It can handle every aspect, from the user’s initial request all the way to the final rendering of a web page. And since the framework follows make the app/tmp directory writable by the webserver. The best way to do this is to find out what user your webserver runs as. You can run inside any PHP file your webserver execute. You should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp0 码力 | 820 页 | 2.52 MB | 1 年前3
 CakePHP Cookbook 4.x
Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization Handlers Formatters Localizing Dates and Numbers Parsing Localized Datetime Data Converting Request Data from the User’s Timezone Automatically Choosing the Locale Based on Request Data Translate Content/Entities Logging as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or0 码力 | 1249 页 | 1.04 MB | 1 年前3 CakePHP Cookbook 4.x
Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization Handlers Formatters Localizing Dates and Numbers Parsing Localized Datetime Data Converting Request Data from the User’s Timezone Automatically Choosing the Locale Based on Request Data Translate Content/Entities Logging as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 4.x
as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email' $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled data. Being separate from the Model objects, it is responsible for using the information0 码力 | 967 页 | 2.88 MB | 1 年前3 CakePHP Cookbook 4.x
as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\Locator\LocatorAwareTrait; $users = $this->getTableLocator()->get('Users'); $user = $users->newEntity(['email' $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled data. Being separate from the Model objects, it is responsible for using the information0 码力 | 967 页 | 2.88 MB | 1 年前3
 CakePHP Cookbook 3.x
Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization Handlers as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or standard classes for table and entity classes that have not yet been defined. If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\TableRegistry; // Prior to0 码力 | 1244 页 | 1.05 MB | 1 年前3 CakePHP Cookbook 3.x
Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization Handlers as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or standard classes for table and entity classes that have not yet been defined. If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\TableRegistry; // Prior to0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook 3.x
as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or standard classes for table and entity classes that have not yet been defined. If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\TableRegistry; // Prior to ') $users = TableRegistry::getTableLocator()->get('Users'); $user = $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled0 码力 | 967 页 | 2.80 MB | 1 年前3 CakePHP Cookbook 3.x
as saving the user data, saving friends’ associations, storing and retrieving user photos, finding suggestions for new friends, etc. The model objects can be thought of as “Friend”, “User”, “Comment”, or standard classes for table and entity classes that have not yet been defined. If we wanted to make a new user and save it (with validation) we would do something like: use Cake\ORM\TableRegistry; // Prior to ') $users = TableRegistry::getTableLocator()->get('Users'); $user = $users->newEntity(['email' => 'mark@example.com']); $users->save($user); The View Layer The View layer renders a presentation of modeled0 码力 | 967 页 | 2.80 MB | 1 年前3
 Laravel 5.0 Documentation
Services i. Authentication i. Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. Password Reminders & Reset vii. Social Method Injection public function createPost(Request $request, PostRepository $posts) { // } User registration, authentication, and password reset controllers are now included out of the box, as well auth/login and auth/register routes. The App\Services\Auth\Registrar service is responsible for user validation and creation. You may now define events as objects instead of simply using strings. For0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
Services i. Authentication i. Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. Password Reminders & Reset vii. Social Method Injection public function createPost(Request $request, PostRepository $posts) { // } User registration, authentication, and password reset controllers are now included out of the box, as well auth/login and auth/register routes. The App\Services\Auth\Registrar service is responsible for user validation and creation. You may now define events as objects instead of simply using strings. For0 码力 | 242 页 | 1.44 MB | 1 年前3
 Laravel 5.2 中文文档中文学习资源 2 use App\User; Route::get('/user/{user}', function (User $user) { return $user; }); 在 Laravel 5.1 中,你需要通过 Route::model 方法告诉 Laravel 注入 App\User 实例以匹 配路由定义中的 {user} 参数。 现在,在 Laravel Laravel 5.2 中,框架将会基于相应 URI 片段自动注入模型,从而允许你快速 访问需要的模型实例。 如果路由参数片段 {user} 匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent 模型类的话,Laravel 将会自动注入该模型。 更多隐式模型绑定详情请查看 Laravel 5.2 文档 HTTP 路由模型绑定部分。 中间件组 中间件组允许你 驱动,需要在配置文 件 session.php 中指定 legacy-database 驱动。 如果你想要使用新的驱动,还需要添加 user_id (nullable integer)、ip_address (nullable string) 以及 user_agent (text) 列到存放 Session 的数据表中。 Stringy 框架不再内置 Stringy 库,如果要在应用中使用,你需要通过0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档中文学习资源 2 use App\User; Route::get('/user/{user}', function (User $user) { return $user; }); 在 Laravel 5.1 中,你需要通过 Route::model 方法告诉 Laravel 注入 App\User 实例以匹 配路由定义中的 {user} 参数。 现在,在 Laravel Laravel 5.2 中,框架将会基于相应 URI 片段自动注入模型,从而允许你快速 访问需要的模型实例。 如果路由参数片段 {user} 匹配路由闭包或控制器方法中相应变量 $user,并且被类型声明 为一个 Eloquent 模型类的话,Laravel 将会自动注入该模型。 更多隐式模型绑定详情请查看 Laravel 5.2 文档 HTTP 路由模型绑定部分。 中间件组 中间件组允许你 驱动,需要在配置文 件 session.php 中指定 legacy-database 驱动。 如果你想要使用新的驱动,还需要添加 user_id (nullable integer)、ip_address (nullable string) 以及 user_agent (text) 列到存放 Session 的数据表中。 Stringy 框架不再内置 Stringy 库,如果要在应用中使用,你需要通过0 码力 | 377 页 | 4.56 MB | 1 年前3
共 82 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9














