You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heading: Using Named Routes.
Issue: Missing Closing ] on 2nd line of example.
IS
// The route is defined as:
$routes->add('users/(:id)/gallery(:any)', 'Galleries::showUserGallery/$1/$2', ['as' => 'user_gallery');
// Generate the relative URL to link to user ID 15, gallery 12
// Generates: /users/15/gallery/12
<a href="<?= route_to('user_gallery', 15, 12) ?>">View Gallery</a>
2nd line read:
$routes->add('users/(:id)/gallery(:any)', 'Galleries::showUserGallery/$1/$2', ['as' => 'user_gallery');
Should be
$routes->add('users/(:id)/gallery(:any)', 'Galleries::showUserGallery/$1/$2', ['as' => 'user_gallery']);
The text was updated successfully, but these errors were encountered:
TimBrownlaw
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Apr 26, 2020
https://codeigniter4.github.io/userguide/incoming/routing.html#reverse-routing
Heading: Using Named Routes.
Issue: Missing Closing ] on 2nd line of example.
IS
2nd line read:
$routes->add('users/(:id)/gallery(:any)', 'Galleries::showUserGallery/$1/$2', ['as' => 'user_gallery');
Should be
$routes->add('users/(:id)/gallery(:any)', 'Galleries::showUserGallery/$1/$2', ['as' => 'user_gallery']);
The text was updated successfully, but these errors were encountered: