Kohana 3.1 相当于 Request::instance()->directory?
我的应用程序中有这段代码...
Request::instance()->directory
升级到 3.1 后它停止工作...我想知道 3.1 的等效项是什么...?
谢谢
Have this bit of code in my app...
Request::instance()->directory
After upgrading to 3.1 it stopped working... I was wondering what the 3.1 equivalent of this would be...?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Request::instance()
已替换为Request::current()
和Request::initial()。
通常您会想要使用Request::current(),
但如果您确定需要原始请求(运行 hmvc 请求时),请使用Request::initial()。
Request::instance()
has been replaced byRequest::current()
andRequest::initial().
Normally you'll want to useRequest::current(),
but if you are sure you want the original request (when running hmvc requests), useRequest::initial().