Iam looking for a way to transform column names (behaviour perhaps?).
I have an existing database with very confusing column names (like
FP002EX - remember Fortran) and would like to display/use/edit them in
cakephp via friendlier name: eg FP002EX -> title
Something like:
class MyModel extends AppModel {
var $actsAs = array('transnames');
var $transNames = array('FP002EX'=>'title',...);
}
controller usage:
$this->data['MyModel']['title'] = 'New title'; // would set FP002EX
$this->save($this->data);
Is there an existing solution to my problem? Can someone point me to
the best way for implementing this behaviour?
Tnx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---