<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>
(Yaf >=1.0.0)
Yaf_Request_Abstract::getParam — 检索调用的参数
name
default
<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>