Mam następującą postać:Zend Framework: dane do wypełniania DB Zend Form rozwijanego elementu
<?php
class Application_Form_RegistrationForm extends Zend_Form{
public function init(){
$country = $this->createElement('select', 'country');
$country->setLabel('country: ')
->setRequired(true);
$email = $this->createElement('text', 'email_address');
$email->setLabel('Email Address: ')
->setRequired(true);
$register = $this->createElement('submit', 'register');
$register->setLabel('Create new Account')
->setIgnore(true);
$this->addElements(array(
$country, $email, $register
));
}
}
?>
Lista krajów są obecne w tabeli country
w bazie danych.
Czy mogę uzupełnić listę krajów o nazwy krajów z bazy danych?
Każda pomoc jest doceniana.
Dzięki
Wielkie dzięki za twoje help – Phantom007
, a następnie, gdy to nie działa, ponieważ nie ma wyjaśnienia dla nowego Application_Model_Country() ... –