> if i try, > $this->set('country', $data). pr($data); > > only blank array is displayed. > > further i want to know how to display it in the views. > Nearly there:
// Set the country array to something the view can access. IN YOUR CONTROLLER: $this->set('country',$data); // IN YOUR VIEW: <?php echo $country['Country']['id']; ?> <?php debug($country); ?> (this assumes you've got debug on, which is anybody's guess). Regards! -Toby --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---