CakePHP 4.0 Overview
Global functions summary
- __()
Returns a translated string if one is found; Otherwise, the submitted message.
- __d()
Allows you to override the current domain for a single message lookup.
- __dn()
Allows you to override the current domain for a single plural message lookup.
- __dx()
Allows you to override the current domain for a single message lookup.
- __dxn()
Returns correct plural form of message identified by $singular and $plural for count $count.
- __n()
Returns correct plural form of message identified by $singular and $plural for count $count.
- __x()
Returns a translated string if one is found; Otherwise, the submitted message.
- __xn()
Returns correct plural form of message identified by $singular and $plural for count $count.
- breakpoint()
Command to return the eval-able code to startup PsySH in interactive debugger Works the same way as eval(\Psy\sh()); psy/psysh must be loaded in your project
- collection()
Returns a new Cake\Collection\Collection object wrapping the passed argument.
- dd()
Prints out debug information about given variable and dies.
- debug()
Prints out debug information about given variable and returns the variable that was passed.
- deprecationWarning()
Helper method for outputting deprecation warnings
- env()
Gets an environment variable from available sources, and provides emulation for unsupported or inconsistent environment variables (i.e. DOCUMENT_ROOT on IIS, or SCRIPT_NAME in CGI mode). Also exposes some additional custom environment information.
- getTypeName()
Returns the objects class or var type of it's not an object
- h()
Convenience method for htmlspecialchars.
- namespaceSplit()
Split the namespace from the classname.
- pj()
json pretty print convenience function.
- pluginSplit()
Splits a dot syntax plugin name into its plugin and class name.
- pr()
print_r() convenience function.
- stackTrace()
Outputs a stack trace based on the supplied options.
- triggerWarning()
Triggers an E_USER_WARNING.
Global constants summary
- DAY
- DS
Defines DS as short form of DIRECTORY_SEPARATOR.
- HOUR
- MINUTE
- MONTH
- SECOND
- WEEK
- YEAR
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.0/index.html