CakePHP Cookbook 3.x
Configuration Configuring your Application Loading Additional Configuration Files Environment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Controllers The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Redirecting to Other Pages Redirecting to Another Action0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.xConfiguration Configuring your Application Loading Additional Configuration Files Environment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controller::addViewClasses() Content0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Configuration Configuring your Application Loading Additional Configuration Files Environment Variables General Configuration Using a CDN Database Configuration Caching Configuration Error and Exception Parameters Query String Parameters Request Body Data File Uploads PUT, PATCH or DELETE Data Environment Variables (from $_SERVER and $_ENV) XML or JSON Data Path Information Checking Request Conditions Session Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controller::viewClasses() Content0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 Additional assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local variables which we used in the above code. You might have noticed the the Entity Routing section for more information. • Routing variables can now use {var} style placeholders. This style allows mid-word variables to be defined. You cannot combine {var} placeholders with0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Additional assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local variables which we used in the above code. You might have noticed the Cookbook Documentation, Release 5.x TestSuite • TestSuite was removed. Users should use environment variables to customize unit test settings instead. • TestListenerTrait was removed. PHPUnit dropped support0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local variables which we used in the above code. You might have noticed the been renamed to Entity::_fields. View • The _serialize, _jsonOptions and _jsonp special view variables of JsonView are now deprecated. Instead you should use viewBuilder()->setOption($optionName, $optionValue) $optionValue) to set these options. • The _serialize, _rootNode and _xmlOptions special view variables of XmlView are now deprecated. In- stead you should use viewBuilder()->setOption($optionName, $optionValue)0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
blocks Using blocks for script and CSS files Layouts Using layouts from plugins Elements Passing Variables into an Element Caching Elements Requesting Elements from a Plugin 2.0 2.1 Creating your own view the child class will always override those in AppController. Note CakePHP merges the following variables from the AppController into your application’s controllers: $components $helpers $uses Remember attributes make MVC classes given by $components and $uses available to the controller as class variables ($this->ModelName, for example) and those given by $helpers to the view as an object reference variable0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
the child class will always override those in AppController. Note: CakePHP merges the following variables from the AppController into your application’s controllers: • $components • $helpers • $uses attributes make MVC classes given by $components and $uses available to the controller as class variables ($this->ModelName, for example) and those given by $helpers to the view as an object reference variable 'User'); public $helpers = array('Js'); public $components = array('RequestHandler'); } Each of these variables are merged with their inherited values, therefore it is not necessary (for example) to redeclare0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













