<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>
PHP - Manual: Yaf_Request_Abstract::getParam
2024-11-14
(Yaf >=1.0.0)
Yaf_Request_Abstract::getParam — The getParam purpose
$name
, string $default
= ?): void
本函数还未编写文档,仅有参数列表。
name
default
<?php
$id = $this->getRequest()->getParam("id",'');
echo '<pre>';
var_dump($id); //1
?>
官方地址:https://www.php.net/manual/en/yaf-request-abstract.getparam.php