CakePHP Cookbook Documentation 5.x
the convention is that your URLs are lowercase and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you underscored. For example users, menu_links, and user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with to the users table via a user_id foreign key. For a table like menu_links whose name contains multiple words, the foreign key would be menu_link_id. Join (or “junction”) tables are used in BelongsToMany0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook Documentation 5.x
the convention is that your URLs are lower- case and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you underscored. For example users, menu_links, and user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with to the users table via a user_id foreign key. For a table like menu_links whose name contains multiple words, the foreign key would be menu_link_id. Join (or “junction”) tables are used in BelongsToMany0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 4.x
the convention is that your URLs are lowercase and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you underscored. For example users, menu_links, and user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with to the users table via a user_id foreign key. For a table like menu_links whose name contains multiple words, the foreign key would be menu_link_id. Join (or “junction”) tables are used in BelongsToMany0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 4.x
the convention is that your URLs are lower- case and dashed using the DashedRoute class, therefore /menu-links/view-all is the correct form to access the MenuLinksController::viewAll() action. When you underscored. For example users, menu_links, and user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with to the users table via a user_id foreign key. For a table like menu_links whose name contains multiple words, the foreign key would be menu_link_id. Join (or “junction”) tables are used in BelongsToMany0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook 3.x
convention is to use lowercase letters and dashes as separator: // Bad cakephp/foo-bar // Good your-name/cakephp-foo-bar Summarized By naming the pieces of your application using CakePHP conventions, CakePHP Folder Structure After you’ve downloaded the CakePHP application skeleton, there are a few top level folders you should see: The bin folder holds the Cake console executables. The config folder argument passed to above functions must be an array. e.g. $email- >addHeaders(['og:tag' => ['foo', 'bar']]); Http Response::withCookieCollection() was added. ORM Cake\ORM\Locator\TableLocator can now0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 3.x
convention is to use lowercase letters and dashes as separator: // Bad cakephp/foo-bar // Good your-name/cakephp-foo-bar Additional Reading 9 CakePHP Cookbook Documentation, Release 3.10 Summarized CakePHP Folder Structure After you’ve downloaded the CakePHP application skeleton, there are a few top level folders you should see: • The bin folder holds the Cake console executables. • The config folder argument passed to above functions must be an array. e.g. $email->addHeaders(['og:tag' => ['foo', 'bar']]); Http • Response::withCookieCollection() was added. ORM • Cake\ORM\Locator\TableLocator can0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 2.x
RewriteRule (.*) app/webroot/$1 [L] CakePHP app directory (will be copied to the top directory of your application by bake):RewriteEngine on RewriteRule function. Keen observers will note that this seems redundant, as there is also a vendors folder at the top level of our directory structure. We’ll get into the differences between the two when we discuss managing 'pizza', 'quantity' => 5 ), '#' => 'top') ); The generated URL would be: http://www.example.com/orders/confirm?product=pizza&quantity=5#top Controller::flash(string $message, string|array 0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
[L] RewriteRule (.*) app/webroot/$1 [L] CakePHP app directory (will be copied to the top directory of your application by bake):RewriteEngine on RewriteRule ^$ function. Keen observers will note that this seems redundant, as there is also a vendors folder at the top level of our directory structure. We’ll get into the differences between the two when we discuss managing 2.x (continued from previous page) ), '#' => 'top') ); The generated URL would be: http://www.example.com/orders/confirm?product=pizza&quantity=5#top Controller::flash(string $message, string|array 0 码力 | 820 页 | 2.52 MB | 1 年前3The Laravel Handbook
first retrieve the data from the model, and pass it to the view. First we import the model at the top of the file: use App\Models\Dog; Then in the route we call Dog::all(); to get all the dogs stored 65 Now we scaffold the Dog model: php artisan make:model Dog Go to routes/web.php . At the top, add use App\Models\Dog; then find the / route: Route::get('/', function () { return view('welcome'); t; class DogController extends Controller { // } Add use App\Models\Dog; at the top, and add those 2 methods to the class, create and delete , as we did before, but this time both0 码力 | 111 页 | 14.25 MB | 1 年前3Laravel 3.2 Documentation
=> 'bar'); return Response::make('Hello World!', 200, $headers); }); Returning a custom response containing a view, with binding data: return Response::view('home', array('foo' => 'bar')); make development changes to Laravel. Right-click the Laravel directory to bring up the context menu. Click on Git Clone... Git clone Url: https://github.com/laravel/laravel.git Directory:0 码力 | 139 页 | 1.13 MB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8