4
I created a framework for own use, a little to understand how a Fw works, but turned into 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 my view folder, and the method inside the controller as the file.
To illustrate:
class Home {
public function login() {
//aqui iria meu código
}
In that case, my system would search the folder views folder HOME and inside the folder, would search the file LOGIN within it ( would be views/HOME/LOGIN.view.php ).
The question is: In what situations could I have disorders in the system? Remembering that if I want to have several controllers and only one url, just set in these controllers the url, if not set, it will search by default the controller name and the method, as mentioned above.