CakePHP Cookbook 2.x
Adding New Features Indentation Line Length Control Structures Comparison Function Calls Method Definition Method Chaining DocBlocks Including Files PHP Tags Naming Convention Backwards Compatibility set() to pass data from the controller to the view (which we’ll create next). The line sets the view variable called ‘posts’ equal to the return value of the find('all') method of the Post model. Our Post model but for now, let’s just use the default. Remember how in the last section we assigned the ‘posts’ variable to the view using the set() method? That would pass data to the view that would look something like0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
set() to pass data from the controller to the view (which we’ll create next). The line sets the view variable called ‘posts’ equal to the return value of the find('all') method of the Post model. Our Post model but for now, let’s just use the default. Remember how in the last section we assigned the ‘posts’ variable to the view using the set() method? That would pass data to the view that would look something like message to a session variable to be displayed on the page after redirection. In the layout we have FlashHelper::render() which displays the message and clears the corresponding session variable. The controller’s0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xFeatures IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful when Name Forms Inflector::classify Inflector::dasherize Inflector::tableize Creating Variable Names Inflector::variable Inflection Configuration Loading Custom Inflections Number Number Formatting Currency pluginSplit() namespaceSplit() Core Definition Constants APP APP_DIR CACHE CAKE CAKE_CORE_INCLUDE_PATH CONFIG CORE_PATH DS LOGS RESOURCES ROOT TESTS TMP WWW_ROOT Timing Definition Constants TIME_START Chronos0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful Name Forms Inflector::classify Inflector::dasherize Inflector::tableize Creating Variable Names Inflector::variable Inflection Configuration Loading Custom Inflections Number Number Formatting Currency pluginSplit() namespaceSplit() Core Definition Constants APP APP_DIR CACHE CAKE CAKE_CORE_INCLUDE_PATH CONFIG CORE_PATH DS LOGS RESOURCES ROOT TESTS TMP WWW_ROOT Timing Definition Constants TIME_START SECOND0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Convention Careful when and under_scored Forms Creating Human Readable Forms Creating Table and Class Name Forms Creating Variable Names Creating URL Safe Strings Inflection Configuration Loading Custom Inflections Number Formatting Using Namespaces Creating a Child Constants & Functions Global Functions Core Definition Constants Timing Definition Constants Chronos Debug Kit Migrations ElasticSearch Appendices 3.x Migration Guide0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
Name Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899 Creating Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900 . . . . . . . . . . . . 931 Core Definition Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 933 Timing Definition Constants . . . . . . . . . . . . ?> In the last section we assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.xName Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 779 Creating Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780 . . . . . . . . . . . . 813 Core Definition Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815 Timing Definition Constants . . . . . . . . . . . . ?> In the last section we assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Name Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891 Creating Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892 . . . . . . . . . . . . 927 Core Definition Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929 Timing Definition Constants . . . . . . . . . . . . ?> In the last section we assigned the ‘articles’ variable to the view using set(). Variables passed into the view are available in the view templates as local0 码力 | 967 页 | 2.88 MB | 1 年前3
共 8 条
- 1













