2
I’m starting a project now a bit big, and I chose to use the MVC structure.
I created the entire backoffice base in a folder, but when creating it came to me the following question: Should I create another structure (or copy the current one) at the root to the system front? Or within each folder (models, views, controllers) I must create a folder for the back and another for the front?
As the MVC serves to maintain an organized and class-based system, I saw no advantage in creating two structures, so I would like to know the best practice related to this.
Diego, welcome to Stack Overflow. If possible could [Edit] your question and include the structure you created/want to create? I got a little confused and I didn’t quite get your idea.
– gmsantos
When reading the second paragraph I already noticed the confusion. If you arrived at this point, surely you have logical problem. My question is, what do you really know about MVC? If you can describe briefly what you understand about MVC, then we can have a starting point.
– Daniel Omine
Friends, I myself realized my logical confusion, rs. As I never used MVC before was stuck the three default folders. But I solved the following, within controllers and models I will create two folders, admin and front. I will create at the root a folder for the admin views and another for the front views. So it solves my problem, because before I thought that to follow the standards I would have to mix the admin files with those of the front in order not to escape from the three default folders. Sorry for the confusion.
– dm707