|
|||
|
Hello,
I don't know, why I didn't get a reply to my first quest. Perhaps it was to complicate, so I will try it one more times, more easy. I want to get a recordset with the following fields in it: adr_address.id, adr_address_kind.type, adr_address.name, adr_address.surename How can I realize this? Sorry, this are my first steps with ZF. ![]() SQL Dump: CREATE TABLE `adr_address` ( `id` int(10) unsigned NOT NULL auto_increment, `adr_address_kind_id` int(10) unsigned NOT NULL, `name` varchar(45) default NULL, `surename` varchar(45) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; INSERT INTO `adr_address` VALUES (1, '1', 'Muffin', 'Ben'); CREATE TABLE `adr_address_kind` ( `id` int(10) unsigned NOT NULL auto_increment, `typ` varchar(20) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; INSERT INTO `adr_address_kind` VALUES (1, 'Main Address'); Controller ContactController.php PHP Code:
Model Contact.php PHP Code:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|