Home >Backend Development >PHP Tutorial >How does yaf receive routing parameters?

How does yaf receive routing parameters?

WBOY
WBOYOriginal
2016-07-06 13:52:501137browse

/.../list?id=12 How to get id=12

Reply content:

/.../list?id=12 How to get id=12

Yaf_Registry::get() Read more manual registry

<code>$controller->getQuery('id');</code>

  • $_GET['id']

  • has $this->getRequest()->getQuery('id','');

  • inside the controller
Statement:
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