<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>
(Yaf >=1.0.0)
Yaf_Request_Abstract::getParam — The getParam purpose
$name
[, string $default
] )
此函式目前沒有參考文件;只有引數列表。
name
default
<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>