Symfony中获取POST或GET的方法

By Symphony - Last updated: Tuesday, May 20, 2008 - Save & Share - One Comment

public function executeTest()
{
$hasName = $this->getRequest()->hasParameter('name');
$hasName = $this->hasRequestParameter('name'); // Shorter version
var_dump( $hasName );
$name = $this->getRequest()->getParameter('name');
$name = $this->getRequestParameter('name'); // Shorter version
var_dump( $name );

return sfView::NONE;
}

Posted in Uncategorized • Tags: , Top Of Page

One Response to “Symfony中获取POST或GET的方法”

Trackback from xbox360 games
Time 2012/03/17 at 2:14 am

xbox 360 new games…

There are two forms of pedestrians… the short and the dead….

Write a comment