CakePHP Cookbook 2.x
permissions will be setup properly: HTTPDUSER=�ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root␣ ˓→| head -1 | cut -d\ -f1� setfacl -R -m u:${HTTPDUSER}:rwx app/tmp setfacl AppController itself extends the Controller class included in the CakePHP core library. AppController is de- fined in /app/Controller/AppController.php as follows: class AppController extends Controller { } key allows you to override the default model error messages and can be used, for example, to set i18n messages. It has a number of suboptions which control the wrapping element, wrapping element class name0 码力 | 820 页 | 2.52 MB | 1 年前3CakePHP Cookbook 2.x
Running Shells as cronjobs Completion Shell Code Generation with Bake Schema management and migrations I18N shell ACL Shell Test shell Upgrade shell Development Configuration Database Configuration Additional permissions will be setup properly: HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data| [n]ginx' | grep -v root | head -1 | cut -d\ -f1` setfacl -R -m u:${HTTPDUSER}:rwx app/tmp setfacl -R -d key allows you to override the default model error messages and can be used, for example, to set i18n messages. It has a number of suboptions which control the wrapping element, wrapping element class name0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook Documentation 5.x
by default since 4.1.0. The files data will now always contain UploadedFileInterfaces objects. I18n • FrozenDate was renamed to Date and FrozenTime was renamed to DateTime. • Time now extends Cake\Chronos\ChronosTime class so you don’t have to manually add that trait to your Testcase classes. 36 https://docs.phpunit.de/en/10.0/extending-phpunit.html#extending-the-test-runner 42 Chapter 3. Migration Guides CakePHP Cookbook permissions will be setup properly: HTTPDUSER=�ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root␣ ˓→| head -1 | cut -d\ -f1� setfacl -R -m u:${HTTPDUSER}:rwx tmp setfacl -R -d0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 4.x
set to Lax by default. Check Session Configuration section for more info. I18n • JSON encoding Cake\I18n\Date and Cake\I18n\FrozenDate objects now results in strings with only the date part, in format RouteBuilder::resources() now inflects resource names to dasherized form instead of underscored by de- fault in URLs. You can retain underscored inflection by using 'inflect' => 'underscore' in $options argument. • Router::plugin() and Router::prefix() now use plugin/prefix name in dasherized form in URL by de- fault. You can retain underscored from (or any other custom path) by using 'path' key in $options0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook Documentation 5.x
Option Parsers Running Shells as Cron Jobs CakePHP Provided Commands Cache Tool Completion Tool I18N Tool Plugin Tool Schema Cache Tool Routes Tool Server Tool Interactive Console (REPL) Routing in the Internationalization & Localization Setting Up Translations Language Files Extract Pot Files with I18n Shell Setting the Default Locale Changing the Locale at Runtime Using Translation Functions Using Namespaces Creating a Child Constants & Functions Global Functions __d() __dn() __dx() __dxn() __n() __x() __xn() collection() debug() dd() pr() pj() env() h() pluginSplit() namespaceSplit() Core Definition0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 4.x
Option Parsers Running Shells as Cron Jobs CakePHP Provided Commands Cache Tool Completion Tool I18N Tool Plugin Tool Schema Cache Tool Routes Tool Server Tool Interactive Console (REPL) Shells Routing Internationalization & Localization Setting Up Translations Language Files Extract Pot Files with I18n Shell Setting the Default Locale Changing the Locale at Runtime Using Translation Functions Using Namespaces Creating a Child Constants & Functions Global Functions __d() __dn() __dx() __dxn() __n() __x() __xn() collection() debug() dd() pr() pj() env() h() pluginSplit() namespaceSplit() Core Definition0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 3.x
plugins, and handling errors for plugins that may not exist because they are dev dependencies. I18n • Number::FORMAT_CURRENCY_ACCOUNTING was added. • Number::CURRENCY_ACCOUNTING was added. • Numbe FrozenTime, Date and FrozenDate now accepts a callable that can be used to return a custom string. • The i18n global functions now only return strings. The changes made to 4.0 to remove the null return value when necessary anymore. This makes it consistent to how Shell classes worked. • The default format for Cake\I18n\Time, FrozenTime, Date, and FrozenDate is now yyyy-MM-dd'T'HH':'mm':'ssxxx which solves localization0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 3.x
Option Parsers Shell Helpers Running Shells as Cron Jobs CakePHP Provided Commands Cache Shell I18N Shell Completion Shell Plugin Shell Routes Shell Schema Cache Shell Server Shell Upgrade Shell Shells Internationalization & Localization Setting Up Translations Language Files Extract Pot Files with I18n Shell Setting the Default Locale Changing the Locale at Runtime Using Translation Functions Using plugins, and handling errors for plugins that may not exist because they are dev dependencies. I18n Number::FORMAT_CURRENCY_ACCOUNTING was added. Number::CURRENCY_ACCOUNTING was added. Number::getDe0 码力 | 1244 页 | 1.05 MB | 1 年前3
共 8 条
- 1