![]() |
Error in the CodeIgniter 4 Tutorial - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Error in the CodeIgniter 4 Tutorial (/showthread.php?tid=73050) |
Error in the CodeIgniter 4 Tutorial - InsiteFX - 03-13-2019 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'); See the Pages route, should be: PHP Code: $routes->get('(:any)', 'Pages::showme/$1'); Thanks. RE: Error in the CodeIgniter 4 Tutorial - devops - 03-13-2019 Also in Accessing Config Files: Code: // Creating new class by hand Should be more like: Code: // Creating new class by hand RE: Error in the CodeIgniter 4 Tutorial - ciadmin - 03-14-2019 @InsiteFX good catch, thanks. fixing. @devops It is actually the last line in the sample code that needs fixing ... $pageDize = $config->perPage; fixing. |