CakePHP Cookbook Documentation 5.xby 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 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 -d key allows you to override the default model error messages and can be used, for example, to set i18n messages. To disable the error message output & field classes set the 'error' key to false. Defaults0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP 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 年前3
CakePHP 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 年前3
CakePHP Cookbook Documentation 5.xOption 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 年前3
CakePHP 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
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 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 name the error message for each validation rule you have in your models. In addition you can provide i18n messages for your forms. New in version 2.3: Support for the errorMessage option was added in 2.30 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP 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 the requireSecure feature of SecurityComponent. • Cookies now support the SameSite attribute. I18n • Date and FrozenDate now respect the time zone parameter for various factory helpers like today('Asia/ convenience wrapper around read() operations where you want an exception when the key is missing. I18n • The setJsonEncodeFormat method on Time, FrozenTime, Date and FrozenDate now accepts a callable that0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP 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 年前3
共 8 条
- 1













