este es el fracmento del código utilizado en el countryModel
Código PHP:
Ver original
public function country() { $sth = $this->_gbd->prepare('SELECT code_country, name_country FROM country ORDER by name_country ASC'); $data = $sth->fetchAll(); return $data; }
aquí muestro lo referente al controlador countryController
Código PHP:
y aquí esta lo relacionado al formularioVer original
private $_combobox; public function index() { $this->_view->country = $this->_combobox->country(); $this->_view->title = 'Blinusy combo'; $this->_view->render('index','combobox'); }
Código HTML:
Ver original
la verdad no encuentro el problema y además no se si la lógica estará bien con respecto a los select agradesco su ayuda para corregir mi error