Programmer Interrupted

 Based on a analysis of 10,000 programming sessions recorded from 86 programmers using Eclipse and Visual Studio and a survey of 414 programmers (Parnin:10), we found: A programmer takes between 10-15 minutes to start editing…

CakePHP – To display two or more fields in displayField

Modelclass UserDetail extends AppModel {public $virtualFields = array(    'collector_name' => 'CONCAT(UserDetail.first_name, " ", UserDetail.middle_name, " ", UserDetail.last_name)');public $displayField= "collector_name";}Controller$userDetails = $this->CustomerSubscription->UserDetail->find('list', array('conditions'=> array('UserDetail.department_id'=>'2'))); $this->set(compact('userDetails'));

Scroll Up