I am thinking with the form to modify, delete, and add content to simple pages of the admin page. What would you recommend to contact me in Symphony 2?
Should I make a new bundle or just new action in the same controller, where all other pages are there.
I have heard of this Sonataadmin
, but I am not in need of something complex. Some data will be modified in my admin page, which modifies some of the data stored on the website. I do not need CMS functionality to make pages or posts.
What I need is a simple, secure admin page and to know what is the solution to this problem nowadays.
Just create something like an AdminBundle and make your forms there. Secure your routes so that you have to sign in to access the routes.
Sonata admin has a lot to do for this type of work.
An example of a safe function where you need to log in as the administrator:
/ ** * @ Root ("/", name = "homepage "@Root (" / {_ locale} ", name =" homepage ", name =" homepage ") @ @ security (" is_fell ('ROLE_ADMIN')) * @ template ("Prodacom Main Bundle: Main: Index.html Television ") * / Public Function Index Action () {Return Array ();}
Comments
Post a Comment