#1
what did I miss?



user/login/controllers/Login.php

#2
Hello,
Could be in this line:

Change to:
#3
I am using a secondary module:

#4
Ok what you are describing are Super Modules And Sub Modules.
So, you are correct to use the hyphen.
You have to use the method you want to use, login, after the Super Module-SubModules

Also, your call from the controller needs to have the hyphen and sub module

Hope this helps
#5
/config/custom_routing.php



/modules/welcome/controllers/Welcome.php



Is there anything else wrong? Not working properly, displaying 404 error.
In fact, "/tg-admin" also indicates 404 error, "/trongate_administrators/login" can be accessed normally.
#6
function hi()
{
$data['view_module'] = 'welcome'; Use these two lines when you use a template
$data['view_file'] = 'hi';

$this->view('hi'); You do not include this line when you use the above 2 lines

// $this->template('public', $data); You can include this line to use a template and pass data to the view
}