1. 获取context实例:
$context = sfContext::getInstance();
2. 在action中获得context对象:
$this->getContext();
3.sfContext获取当前的Request()对象:
$request = sfContext::getInstance()->getRequest();
1. 获取context实例:
$context = sfContext::getInstance();
2. 在action中获得context对象:
$this->getContext();
3.sfContext获取当前的Request()对象:
$request = sfContext::getInstance()->getRequest();