Skip to content

Instantly share code, notes, and snippets.

@ceeram
Last active December 18, 2015 03:59
Show Gist options
  • Save ceeram/5722421 to your computer and use it in GitHub Desktop.
Save ceeram/5722421 to your computer and use it in GitHub Desktop.
<?php
public function specificAccessSpeeds() {
$specificAccessType_id = $this->request->data['Service']['specific_access_type_id'];
$Model = ClassRegistry::init('SpecificAccessTypesAccessSpeed');
$Model->virtualFields['custom'] = 'AccessSpeed.name';
$specificAccessSpeeds = $Model->find( 'list', array(
'conditions' => array( 'SpecificAccessTypesAccessSpeed.specific_access_type_id' => $specificAccessType_id ),
'recursive' => -1,
'fields' => array('access_speed_id', 'custom')
));
//debug($specificAccessSpeeds);
$this->set('specificAccessSpeeds', $specificAccessSpeeds );
$this->layout = 'ajax';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment