Jump to content

cake select default country


sasori

Recommended Posts

let's say i have a $countryOptions

 

           $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?

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.