开发者

Zend Framework Admin Module structure

开发者 https://www.devze.com 2023-01-15 13:06 出处:网络
I am creating a large web application with Zend Framework 1.10. A am new in Zend Framework(1 month experiance). Can you exp开发者_开发百科lain me how to create a admin module in the best way?(with own

I am creating a large web application with Zend Framework 1.10. A am new in Zend Framework(1 month experiance). Can you exp开发者_开发百科lain me how to create a admin module in the best way?(with own authentication). How to make this with good security? Thanks a lot.


I would create AdminController in each module, then route rewriting the paths like this:

/admin/module1 => module1/AdminController
/admin/module2 => module2/AdminController

Then leverage Zend_Auth and Zend_Acl.

You will also need controller plugin which checks the credentials from Zend_Auth and a Authorization controller with login form.

But it all depends on your application.


The good practice is to create admin module with own controllers and plugins.

0

精彩评论

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