php version: 4.4.2
cakephp: 1.2
I have 2 models, User and Message. User is for authenticating users
and Message are the messages from users. Message belongsTo User.
messages table fields
message (message body)
user_id (foreign key to users, auto filled from session)
created_date (current timestamp, auto filled)
To keep UI simple, I have put an 'Add Message' form in the index page
of messages.
<?php echo $form->create('Message');?>
<fieldset>
<legend><?php echo sprintf(__('Add %s', true), __('Message',
true));?></legend>
<?php
echo $form->input('message');
?>
</fieldset>
<?php echo $form->end('Submit');?>
The problem is the above form shows the input for message as a drop
down (instead of textbox) with all the values from all columns in the
messages table.
Any clue what might be wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---