CI4 Modules Code not work |
I wanted to organize my code in modules. In the documentation, I found the modular code and followed all the instructions. But I did not succeed, help, please, understand the reason.
1. application/Config/Autoload.php add: PHP Code: class Autoload extends \CodeIgniter\Config\AutoloadConfig /application/ /modules->Node->Controllers and Config /public ... 3. chage value in /application/Config/Routes.php (false into true) : PHP Code: $routes->discoverLocal(true); PHP Code: //in controller Now visit http://mysite.com/node/any and I get 404 ... Please point out my mistakes, thank you! (I will be grateful for the examples of Routes.php and other) |
Welcome Guest, Not a member yet? Register Sign In |