php - Simple Admin Page: Symfony2 -
php - Simple Admin Page: Symfony2 -
i'm thinking of creating admin page forms modify, delete , add together content simple pages of website. recommend me approach in symfony2?
should create new bundle or new action in same controller other pages are.
i heard of sonataadmin, not sure need complicated. admin page contain few forms modify info stored on website. don't need cms functionality create pages or posts.
all want simple, safe admin page , know how nowadays problem solved.
just create adminbundle , create forms there. secure routes need login acces routes.
sonataadmin much kind of work.
example of secured function need logged in admin :
/** * @route("/", name="homepage", name="homepage") * @route("/{_locale}", name="homepage", name="homepage") * @security("has_role('role_admin')") * @template("prodacommainbundle:main:index.html.twig") */ public function indexaction() { homecoming array(); } php symfony2 admin
Comments
Post a Comment