(05-27-2018, 06:54 AM)dave friend. Wrote: One issue might be this line
Thank you, you are right. I added a namespace:
PHP Code:
//in controller
namespace Modules; //or namespace Modules/Node;
class Node extends \CodeIgniter\Controller
{
public function index()
{
echo "Say Hi!";
}
}
and route:
PHP Code:
public $psr4 = ['Modules' => APPPATH.'modules']; //or APPPATH.'../modules'
but psr4 still does not see files(my suggestion), because I found that syntax errors are not defined in /Modules
If you can show your code sample module, I can compare the changes made in these files and 100% determine my error.
P.S
Thanks guys, that drew attention to my problem!