Exemple #1
0
 private function createFields()
 {
     $addressContainer = new AddressFormContainer();
     $this->addComponent($addressContainer, 'address');
     $addressContainer->addNameControl('name', $this->cart->getName(), true);
     $addressContainer->addStreetControl('street', $this->cart->getStreet(), true);
     $addressContainer->addCityControl('city', $this->cart->getCity(), true);
     $addressContainer->addZipControl('zip', $this->cart->getZip(), true);
     $this->addSubmit('next', 'Next');
 }