Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 14, 2024
2 parents b41ac31 + 7d50bd3 commit 2968e1f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/Views/welcome_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@
<button id="menuToggle">&#9776;</button>
</li>
<li class="menu-item hidden"><a href="#">Home</a></li>
<li class="menu-item hidden"><a href="https://codeigniter4.github.io/userguide/" target="_blank">Docs</a>
<li class="menu-item hidden"><a href="https://codeigniter.com/user_guide/" target="_blank">Docs</a>
</li>
<li class="menu-item hidden"><a href="https://forum.codeigniter.com/" target="_blank">Community</a></li>
<li class="menu-item hidden"><a
href="https://github.com/codeigniter4/CodeIgniter4/blob/develop/CONTRIBUTING.md" target="_blank">Contribute</a>
href="https://codeigniter.com/contribute" target="_blank">Contribute</a>
</li>
</ul>
</div>
Expand Down Expand Up @@ -264,7 +264,7 @@

<p>The User Guide contains an introduction, tutorial, a number of "how to"
guides, and then reference documentation for the components that make up
the framework. Check the <a href="https://codeigniter4.github.io/userguide"
the framework. Check the <a href="https://codeigniter.com/user_guide/"
target="_blank">User Guide</a> !</p>

<h2>
Expand Down
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Views/_config.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p class="debug-bar-alignRight">
<a href="https://codeigniter4.github.io/CodeIgniter4/index.html" target="_blank" >Read the CodeIgniter docs...</a>
<a href="https://codeigniter.com/user_guide/" target="_blank" >Read the CodeIgniter docs...</a>
</p>

<table>
Expand Down
2 changes: 1 addition & 1 deletion system/Session/Handlers/BaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class BaseHandler implements SessionHandlerInterface
* Cookie prefix
*
* The Config\Cookie::$prefix setting is completely ignored.
* See https://codeigniter4.github.io/CodeIgniter4/libraries/sessions.html#session-preferences
* See https://codeigniter.com/user_guide/libraries/sessions.html#session-preferences
*
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/general/common_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Miscellaneous Functions
:returns: a route path (URI path relative to baseURL)
:rtype: string

.. note:: This function requires the controller/method to have a route defined in **app/Config/routes.php**.
.. note:: This function requires the controller/method to have a route defined in **app/Config/Routes.php**.

.. important:: ``route_to()`` returns a *route* path, not a full URI path for your site.
If your **baseURL** contains sub folders, the return value is not the same
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/helpers/url_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ The following functions are available:
:returns: Absolute URL
:rtype: string

.. note:: This function requires the controller/method to have a route defined in **app/Config/routes.php**.
.. note:: This function requires the controller/method to have a route defined in **app/Config/Routes.php**.

Builds an absolute URL to a controller method in your app. Example:

Expand Down
7 changes: 5 additions & 2 deletions user_guide_src/source/incoming/routing/069.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
// Would execute the show404 method of the App\Errors class
$routes->set404Override('App\Errors::show404');

// Will display a custom view
// Will display a custom view.
$routes->set404Override(static function () {
echo view('my_errors/not_found.html');
// If you want to get the URI segments.
$segments = request()->getUri()->getSegments();

return view('my_errors/not_found.html');
});

0 comments on commit 2968e1f

Please sign in to comment.