public function executeNew(sfWebRequest $request) { $i18n = $this->getContext()->getI18N(); $estimate = new Estimate(); $estimate->fromArray(array('customer_name' => $i18n->__('Client Name'), 'customer_identification' => $i18n->__('Client Legal Id'), 'contact_person' => $i18n->__('Contact Person'), 'invoicing_address' => $i18n->__('Invoicing Address'), 'shipping_address' => $i18n->__('Shipping Address'), 'customer_email' => $i18n->__('Client Email Address'))); $this->estimateForm = new EstimateForm($estimate, array('culture' => $this->culture)); $this->title = $i18n->__('New Estimate'); $this->action = 'create'; $this->setTemplate('edit'); }