Zend 取get或post参数的方法:
1、get:
<?php
$req = $this->getRequest();
echo $req->getParam('id');
?>
或者这样:
<?php
echo $this->_getParam('id');
?>
2、post:
<?php
$content=$this->_request->getPost('content');
$title=$this->_request->getPost('title');
$message=new Message();
$data=array(
'content'=>$content,
'title'=>$title
);
$message->insert($data);
?>