Answer the question
In order to leave comments, you need to log in
Do I need to make different controllers for the admin part and the client part?
Hi all. Tell me: For example, I have an admin panel and the site itself. The site has posts so to speak. I started from the admin panel, created a Post controller, did the creation, saving the post. Now the question is: The user will also create a post and save it, is it worth using the same controller as the Admin, in theory everything is the same !? Tell me how these two parts are usually done?
Answer the question
In order to leave comments, you need to log in
У пользователя тоже будет создание поста и сохранение, стоит ли использовать тот же контроллер что и у Админа, по идее все и тоже!?
Пока делай один, как только понадобится разделение, сделаешь второй. Если не следовать принципу YAGNI, то даже с хорошим фреймворком получишь проект сложный в поддержке как битрикс.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question