Home > Backend Development > PHP Tutorial > zend framework 1.11有关问题

zend framework 1.11有关问题

WBOY
Release: 2016-06-13 13:09:14
Original
769 people have browsed it

zend framework 1.11问题
在控制器中,$this->getRequest->...没有getPost() getServer()等方法,或者说是用此方法得不到值,这是为什么啊,
谁能帮帮我啊

------解决方案--------------------
就是说原来是有的?
那你应先看看他的说明文档

------解决方案--------------------
zend 不是出了2.0 而且还不能向下兼容嘛,要是学习的话就不要1.x咯...
------解决方案--------------------
实在不行就$_GET $_POST喽
$request = $this->getRequest();
$request->getParam('username')

$reponse=$this->getResponse();
if ($request->isPost()) {
$username = $request->getPost('username');
}

应该木有问题啊

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template