I created a framework for my own use, a bit for understanding how an fw works, but it turned out to be a basic working tool. I know that many will say that one should not try to reinvent the wheel. But I'm not trying to do this, I'm just wanting to learn how to make the wheel.
My idea is to put the controller name as the folder of my view, and the method inside the controller as the file.
To exemplify:
class Home {
public function login() {
//aqui iria meu código
}
In this case, my system would look in the folder for the HOME folder and inside the folder, it would look for the LOGIN file inside it (would see views / HOME / LOGIN.view. php).
The question is: In what situations could I have system disorders? Remembering that if I want to have several controllers and only one url, just set the url in those controllers, if not, it will search by default for the controller name and method, as mentioned above.