public function executeTextExport(sfWebRequest $request) { $this->setLayout(false); ParametersConfiguration::setUserPrefix(sfContext::getInstance()->getUser()->getAttribute('login')); $this->dbvalues = ParametersConfiguration::getAll(); $this->Modules = $this->getContext()->get('Modules'); $this->Kernel = $this->getContext()->get('Kernel'); $this->missing_dep = $this->getContext()->get('DependenciesErrors'); if ($request->isMethod(sfRequest::POST)) { $this->new = $this->getRequestParameter('module_name_to_add'); $this->new_entry = $this->getRequestParameter('menu_entry'); $this->delete = $this->getRequestParameter('module_name_to_delete'); $this->delete_force = $this->getRequestParameter('module_name_to_delete_force'); } else { $this->new = null; $this->new_entry = null; $this->delete = null; $this->delete_force = null; } $this->getResponse()->setContentType('text/plain'); }