V
V
Vladimir Balin2015-02-15 19:01:24
symfony
Vladimir Balin, 2015-02-15 19:01:24

How to create an admin panel with Symfony2?

We all know very well that, as in the situation with REST-to-building, Symfony2 aminos are not entirely smooth. The SonataAdminBundle is practically a monopolist, but there are a lot of todos there too. Here it is, interesting. How do you cope with creating an admin panel for a project? Are you using sonata, or an admingeneratorbundle? Or did you even know your own special zen of creating a backend? Share the workflow, what is the best way to create an administrative section in your opinion and why? Best practice if possible from you :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Twist, 2015-02-15
@bboytiwst

What's the problem with REST? It seems to me that at the level of such bundles as FOSRESTBundle, almost all problems have already been solved and you just have to prepare it all correctly (With the addition of 2.6 serialization groups to symphony, you can do without it at all. Out of the box, even everything is ok with symphony now).
As for the admins, it really depends on the specific task, because each bundle, be it Sonata, AdminGenerator or the newly minted EasyAdmin, has its own functional limit, understanding this aisle and the current task, you must already choose the bundle. For example, when the main thing for the customer is to release, and then the functionality of the admin panel can be added along the way, then EasyAdmin, AdminGenerator are suitable for such cases, when you need something more or less serious, then you need to take Sonata, but it has a problem with forms and when you have the admin panel will begin to actively grow and expand, then problems will begin at this moment.
Alternatively, you can write the admin panel on the js framework (which is convenient, because you do not need to create a separate bundle and you can simply add a controller for the "REST - admin panel")
Another option is to write it from scratch using symphony molds and everything else from the base kit (without using any admin bundles).

A
Alexey Krichko, 2015-02-27
@sand_alkr

I set up the GeneratorBundle for the project, and do CRUD by entities. Admin bundles didn't take root...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question