CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 4.2 Strawberry API

  • Overview
  • Version:
    • 4.2
      • 4.2
      • 4.1
      • 4.0
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
    • Cache
    • Collection
    • Command
    • Console
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Filesystem
    • Form
    • Http
    • I18n
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • Shell
    • TestSuite
    • Utility
    • Validation
    • View

CakePHP 4.2 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.

  • urlArray()

    Returns an array URL from a route path string.

Global constants summary

  • DAY
  • DS

    Defines DS as short form of DIRECTORY_SEPARATOR.

  • HOUR
  • MINUTE
  • MONTH
  • SECOND
  • WEEK
  • YEAR
Follow @CakePHP
#IRC
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs