• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in the CodeIgniter 4 Tutorial

#1
In the Static Page controller.

You have the route as this:
PHP Code:
$routes->get('(:any)''Pages::showme/$1'); 

But when you get to the News Section Create News item.

You have the routes like this:
PHP Code:
$routes->match(['get''post'], 'news/create''News::create');
$routes->get('news/(:segment)''News::view/$1');
$routes->get('news''News::index');
$routes->get('(:any)''Pages::view/$1'); 

See the Pages route, should be:
PHP Code:
$routes->get('(:any)''Pages::showme/$1'); 

Thanks.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Error in the CodeIgniter 4 Tutorial - by InsiteFX - 03-13-2019, 08:52 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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