我如何为 Zend Framework 项目中的 1 个模块编写 .htaccess
我有一个 zend 框架项目,有 2 个模块 - 管理模块和默认模块。管理员用于管理我的东西,默认值只能用于我的客户。这就是为什么我想将默认模块限制为仅允许的域。我在谷歌中搜索,发现我可以通过该代码限制 .htaccess: http://www.eukhost.com/论坛/f18/get-domain-site-sent-http-request-9388/ [绿色和红色代码]。
问题是,由于一切都是 zend 框架在 index.php 上运行,我似乎无法限制 .htaccess 仅适用于 1 个模块。 那么我该怎么做呢?
谢谢
I have a zend framework project with 2 modules - admin and default. the admin is for managing my stuff and the default should be used only for my clients. that's why i wanted to limit the default module only to the allowed domains. i searched in google and found that i can can limit the .htaccess by that code:
http://www.eukhost.com/forums/f18/get-domain-site-sent-http-request-9388/
[the green and red code].
The problem is that since everything is the zend framework works on the index.php i cant seem to be able to limit the .htaccess only for 1 module.
so how can i do that?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议阅读 Zend_Acl: http://devzone.zend.com/article/1665这将允许您根据分配的角色控制哪些用户可以访问哪些模块/控制器
I would recommend reading up on Zend_Acl: http://devzone.zend.com/article/1665 which will allow you to control which users can access which modules/controllers based on their assigned role