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 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 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 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
共 8 条
- 1













