$template->customerName = $customer->getCustomerName(); $template->customerStreet = $customer->getCustomerStreet(); $template->customerCity = $customer->getCustomerCity();
See this: http://stackoverflow.com/…e-properties
You can use setParameters()
setParameters()