Skip to content

Commit 0e060c8

Browse files
committed
docs: add note
1 parent 83720c7 commit 0e060c8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ Miscellaneous Functions
331331
:param string $method: The named route alias, or name of the controller/method to match.
332332
:param mixed $params: One or more parameters to be passed to be matched in the route.
333333

334+
.. note:: This function requires the controller/method to have a route defined in **app/Config/routes.php**.
335+
334336
Generates a URI relative to the domain name (not **baseUrl**) for you based on either a named route alias,
335337
or a controller::method combination. Will take parameters into effect, if provided.
336338

user_guide_src/source/helpers/url_helper.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ The following functions are available:
351351
:returns: Absolute URL
352352
:rtype: string
353353

354+
.. note:: This function requires the controller/method to have a route defined in **app/Config/routes.php**.
355+
354356
Builds an absolute URL to a controller method in your app. Example:
355357

356358
.. literalinclude:: url_helper/021.php

0 commit comments

Comments
 (0)