CakePHP Cookbook Documentation 5.xon a Patch Submitting a Pull Request Coding Standards Adding New Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Console Console Commands The CakePHP Console Console Applications Renaming Commands Commands Command Objects Command Input/Output Option Parsers Running Shells as Cron Jobs CakePHP Provided Commands Cache pluralized and sorted alphabetically: articles_tags, not tags_articles or article_tags. The bake command will not work if this convention is not followed. If the junction table holds any data other than0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xpluralized and sorted alphabetically: articles_tags, not tags_articles or article_tags. The bake command will not work if this convention is not followed. If the junction table holds any data other than Table::save() method. Join tables Should be named after the model tables they will join or the bake command won’t work, arranged in alphabetical order (articles_tags rather than tags_articles). Additional development. Let’s look a little closer at the folders inside src. Command Contains your application’s console commands. See Command Objects to learn more. Console Contains the installation script executed0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
Working on a patch Submitting a pull request Coding Standards Language Adding New Features Indentation Line Length Control Structures Comparison Function Calls Method Definition Method Chaining DocBlocks Including should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp If for some reason the action uses 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 Post0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 4.x
on a Patch Submitting a Pull Request Coding Standards Adding New Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Console Console Commands The CakePHP Console Console Applications Renaming Commands Commands Command Objects Command Input/Output Option Parsers Running Shells as Cron Jobs CakePHP Provided Commands Cache pluralized and sorted alphabetically: articles_tags, not tags_articles or article_tags. The bake command will not work if this convention is not followed. If the junction table holds any data other than0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
on a Patch Submitting a Pull Request Coding Standards Adding New Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Shells & Tasks The CakePHP Console Console Applications Renaming Commands Commands Console Commands Command Input/Output Option Parsers Shell Helpers Running Shells as Cron Jobs CakePHP Provided Commands relationships between models, should be named after the model tables they will join or the bake command won’t work, arranged in alphabetical order (articles_tags rather than tags_articles). If you need0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
pluralized and sorted alphabetically: articles_tags, not tags_articles or article_tags. The bake command will not work if this convention is not followed. If the junction table holds any data other than Table::save() method. Join tables Should be named after the model tables they will join or the bake command won’t work, arranged in alphabetical order (articles_tags rather than tags_articles). Additional development. Let’s look a little closer at the folders inside src. Command Contains your application’s console commands. See Command Objects to learn more. Console Contains the installation script executed0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
relationships between models, should be named after the model tables they will join or the bake command won’t work, arranged in alphabetical order (articles_tags rather than tags_articles). If you need do most of your application development. Let’s look a little closer at the folders inside src. Command Contains your application’s console commands. See Console Commands to learn more. Console Contains template files. View Presentational classes are placed here: views, cells, helpers. Note: The folders Command and Locale are not there by default. You can add them when you need them. Additional Reading 110 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 2.x
should see a username printed. Change the ownership of the app/tmp directory to that user. The final command you run (in *nix) might look something like this: $ chown -R www-data app/tmp If for some reason all .htaccess files. In the lighttpd configuration, make sure you’ve activated “mod_rewrite”. Add a line: url.rewrite-if-not-file =( "^([^\?]*)(\?(.+))?$" => "/index.php?url=$1&$3" ) URL rewrite rules the action uses 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 Post0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













