Welcome Guest, Not a member yet? Register   Sign In
Confirmation required
#1

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');
Reply
#2

take the forward slash off of /about
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB