class Income extends AppModel {var $name = 'Income';var $useDbConfig = 'array_db';var $records = array(array('id' => 1, 'name' => 'Do not disclose'),array('id' => 2, 'name' => '£15,000 - £25,000'),array('id' => 3, 'name' => '£25,000 - £35,000'),);
var $hasMany = array('OtherModel' => array('className' => 'OtherModel','foreignKey' => 'income_id',));}?>
This is exactly what I needed, I am glad to have discovered this gem, thanks LipeDjow
Also Joshua, I agree that your idea is much more user friendly, thanks.
--
Kind Regards
Stephen @ NinjaCoderMonkey
www.ninjacodermonkey.co.uk
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment