开发者

Best approach for a administration panel in Symfony

开发者 https://www.devze.com 2023-02-13 10:17 出处:网络
I need to develop an administration panel for a web application written with Symfony. Generating a backend application seems to be the first option, but I think it introduces some complications.

I need to develop an administration panel for a web application written with Symfony. Generating a backend application seems to be the first option, but I think it introduces some complications.

The main purpose of this basic administration panel is just managing users and configuring values for multiple

<select>
    <option>...</option>
    <option>...</option>
    ...
</select>

within the application. The only restriction is that a regular user cannot access this area, but the model and CRUD actions should have the same behaviour as in frontend modules.

Is it worth to create a开发者_如何学C whole backend application in this case? Or should it be enough to block access by checking the user role?


Using the same application is easier for simple administration tasks that use the same design and components as your frontend application.

Permissions can be easily set using configuration and you should be fine either way .

You could create a separate application and use an admin generator...

It really is up to you how much you want to separate those 2 parts of your website.

0

精彩评论

暂无评论...
验证码 换一张
取 消