Author Topic: cake select default country  (Read 889 times)

0 Members and 1 Guest are viewing this topic.

Offline sasoriTopic starter

  • Enthusiast
  • Posts: 269
    • View Profile
cake select default country
« on: October 16, 2008, 09:14:02 PM »
let's say i have a $countryOptions

Code: [Select]
           $countryOptions = $dataCountry->find('list', array(
                'order' => 'name asc'
            ));
            $this->controller->set('countryOptions',$countryOptions);
           
            $emailList = $emailAddress->find('list', array(
                'conditions' => '`EmailAddress`.`account_id` = '.$this->controller->Common->getSessionAccountId(),
                'order' => 'address desc'

how am i gonna modify it in order to make let's say canada as the default country of the select form?