Ok, the VIEW display should look like below: Agents Employed In This Office (header) ============================== 1. John Mensah 2. Sumani Abdulai 3. Eric Adotey 4. Sam Darko 5. Moses Adjei 5. Kwabena Kyeremeh
I fact the above (in an array) is what the print_r outputs and I would want it in a (possibly) drop-down select option tag even though 'select option' may not be a native VIEW object. -sam On Jun 10, 4:04 pm, Sam Sherlock <[email protected]> wrote: > $Jurisdiction = array( > "agents" => array( > "John" => "Mensah", > "Sumani" => "Abdulai", > > "Eric" => "Adotey", > "Sam" => "Darko", > > "Moses" => "Adjei", > "Kwabena" => "Kyeremeh" > ), > "jurisdiction" => array( > "Jurisdiction" => array(), > "Owner" => array(), > "Agent" => array(), > "Transaction" => array(), > "Vendor" => array() > ), > "num_agents" => 3 > ); > $juris = Set::extract('/agents', $Jurisdiction); > > foreach($juris[0]['agents'] as $fname => $lname): > echo("<br /><br />my name is: " . $fname); > echo("<br />my surname is: " . $lname); > endforeach; > > which outputs ==>> > > my name is: John > my surname is: Mensah > > my name is: Sumani > my surname is: Abdulai > > my name is: Eric > my surname is: Adotey > > my name is: Sam > my surname is: Darko > > my name is: Moses > my surname is: Adjei > > my name is: Kwabena > my surname is: Kyeremeh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
