Tuesday, January 18, 2011

Symfony Page Refresh / Reload

In this quick tutorial we will refresh the page using symfony i.e. we will call the same page form where is request is called lets do it...
public function executePageRefresh(sfWebRequest $request){
    //... something usefull here
    //... going back
    $this->redirect($request->getUri());
}
we use redirect function of symfony and method getUri() from $request object... getUri() give the complete URL inclucing the http and query string.

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems