CI4 Modules Code not work |
I built the following and it works.
File: /application/Modules/Node/Controllers/Node.php PHP Code: <?php namespace App\Modules\Node\Controllers; In /application/Config/Routes.php add the following PHP Code: $routes->add('/node', 'App\Modules\Node\Controllers\Node::index'); Directing the browser to example.com/node produced the expected output. No other code was required. Did not have to edit application/Config/Autoload.php |
Welcome Guest, Not a member yet? Register Sign In |