From ea9438a9e8920c77a84bed292636858226f32701 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 24 Apr 2017 21:52:51 -0400 Subject: [PATCH] Document how to use param() in older CakePHP. Refs #4911 --- en/controllers/request-response.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/en/controllers/request-response.rst b/en/controllers/request-response.rst index 506cc84296..a15851aa64 100644 --- a/en/controllers/request-response.rst +++ b/en/controllers/request-response.rst @@ -43,6 +43,9 @@ The request exposes the routing parameters through the ``getParam()`` method:: $controllerName = $this->request->getParam('controller'); + // Prior to 3.4.0 + $controllerName = $this->request->param('controller'); + All :ref:`route-elements` are accessed through this interface. In addition to :ref:`route-elements`, you also often need access to