@@ -227,3 +227,26 @@ implement those methods that you want handled.::
227227The routing for this would be::
228228
229229 $routes->presenter('photos');
230+
231+ Presenter/Controller Comparison
232+ =============================================================
233+
234+ This table presents a comparison of the default routes created by `resource() `
235+ and `presenter() ` with their corresponding Controller functions.
236+
237+ =========== ========= ====================== ======================== ==================== ====================
238+ Operation Method Controller Route Presenter Route Controller Function Presenter Function
239+ =========== ========= ====================== ======================== ==================== ====================
240+ **New ** GET photos/new photos/new `new() ` `new() `
241+ **Create ** POST photos photos `create() ` `create() `
242+ (alias) POST photos/create `create() `
243+ **List ** GET photos photos `index() ` `index() `
244+ **Show ** GET photos/(:segment) photos/(:segment) `show($id = null) ` `show($id = null) `
245+ (alias) GET photos/show/(:segment) `show($id = null) `
246+ **Edit ** GET photos/(:segment)/edit photos/edit/(:segment) `edit($id = null) ` `edit($id = null) `
247+ **Update ** PUT/PATCH photos/(:segment) `update($id = null) `
248+ (websafe) POST photos/(:segment) photos/update/(:segment) `update($id = null) ` `update($id = null) `
249+ **Remove ** GET photos/remove/(:segment) `remove($id = null) `
250+ **Delete ** DELETE photos/(:segment) `delete($id = null) `
251+ (websafe) POST photos/delete/(:segment) `delete($id = null) ` `delete($id = null) `
252+ =========== ========= ====================== ======================== ==================== ====================
0 commit comments