CodeIgniter Forums

Full Version: Confirmation required
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Can someone confirm that it is not possible to have the following controller file App/Controllers/Front/Main.php and have the following route

Code:
$routes->add('/about', 'front/main::about');
take the forward slash off of /about
(07-08-2019, 10:20 AM)paulkd Wrote: [ -> ]Hi,

Can someone confirm that it is not possible to have the following controller file App/Controllers/Front/Main.php and have the following route

Code:
$routes->add('/about', 'front/main::about');

Perfect!  user error  Rolleyes

Thanks very much.  Big Grin

The documentation was confusing me a little
Quote:When using this feature the first segment of your URI must specify the folder.

https://codeigniter4.github.io/userguide...irectories