Began to study MVC. The essence of this design pattern is clear. I am trying to master this by video tutorials, where my own framework is ultimately obtained.

The problem is that by rewriting all the code, creating the same folder structure, nothing works for me. Then I began to think that I was doing wrong.

I found out: all the authors of the videos, after creating the folder structure, the files, first upload them to a remote server (they don’t tell why, how it is done), and only then they start coding. I continued to do everything on localhost. Thus, the address bar is modified. In my case it is: "localhost / dir / dir / dir / index.php", and in their "myframework.loc / index.php". Could this be a problem?

There is nothing besides localhost. I decided to do ftp with my local IP. Through Netbeans I try to upload folders and files, but upload does not happen. Error 550.

I can not deal with this issue for a month. I do not know how to move forward. And I don’t want to immediately study the finished framework, since it is necessary to understand how he spelled with his hands. Tell me, please, the correct algorithm of actions when developing MVC in PHP.

  • Put the W (M | L) AMP server on your local computer ru.wikipedia.org/wiki/WAMP (only do not use Denver, it has not been updated for a long time). - Visman
  • I LAMP and worth it. Those. can I not bother with remote servers and implement MVC straight to LAMP? What then is the reason for the wrong job in the video tutorials? I decided that because of the difference in the form of address lines. - Sergey_Stasko Sep.
  • you'd better take some famous framework and study it. I would be much more confused than learning something that was not working with video lessons. - teran
  • The problem is that they use routing, but you do not. The server has nothing to do with it - Alexey Shimansky
  • Alexey Shimansky, I also, like them, wrote the router and the routes. - Sergey_Stasko

0