Exemplo n.º 1
0
 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);
 }