11.1.4 Model::generateList()
There is no translation yet for this section. Please help out and translate this.. More information about translations
The generateList() method of has been changed to find('list'). You can simplify your conversion by placing the following in /app/app_model.php.
function generateList ($cond=null,$order=null,$limit=null,$key=null,$val=null) {
return $this->find("list",array(
'conditions' => $cond,
'order' => $order,
'limit' => $limit,
'fields' => array(str_replace('{n}.','',$key), str_replace('{n}.','',$val))
));
}
function generateList ($cond=null,$order=null,$limit=null,$key=null,$val=null) {return $this->find("list",array('conditions' => $cond,'order' => $order,'limit' => $limit,'fields' => array(str_replace('{n}.','',$key), str_replace('{n}.','',$val))));}


























