first thing to check is a pr($divisions) in your controller to check
if the data from your find()-call is correct (and your virtual field
is included).
Second thing is that a select as I remember should look like this
within a view:
echo $this->Form->input(__('Division', true), array(
'type' => 'select',
'options' => divisions
);
Your code looks a bit confusing when it comes to the view.
Normally when your array for the Drop-Down-Options is formatted well,
you do not need to set $divisions variable within the options of the
select input.
So I guess your list array (e.g. $key => $value pairs) is not correct
formatted.
Could you post the pr()-result of your $divisions array here?
Regards,
DD
--
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