• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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, 11: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.