protected function generateFile($module)
 {
     // get javascript by calling the mmwExtjs action
     $browser = new sfBrowser();
     $browser->get('/' . $module . '/mmwExtjs/');
     $javascript = $browser->getResponse()->getContent();
     $file = sfMmwExtjsUtil::getJavascriptPath($module, 'base', true);
     file_put_contents($file, $javascript);
     chmod($file, 0666);
     $this->showMessage($module);
 }
Example #2
0
 /**
  * Sign out is performing by triggering '/logout' url.
  *
  */
 public function signOut()
 {
     $this->browser->get('/logout');
     $this->followRedirect();
 }