Hi, i have a "Tasks" controller that must allow users to report
working hours for each task they have, so what i need is a form to
let the users enter hours for several tasks at the same time and then
submit it all together. I cant figure out how to do this using the
html helper.
This is a simplification of what i have in my view:
<form action="<?php echo $html->url('/tasks/report/'); ?>"
method="post">
<?php foreach ($tasks as $task): ?>
<div>
<?php echo $html->checkbox('Task/doreport');?>
<b><?php echo $task['Task']['type']; ?>:</b><?
php echo $task['Task']['title']; ?>
<?php echo $html->input('Task/hours');?>
</div>
<?php endforeach; ?>
<?php echo $html->submit('Report', array('class'=>'button'));?>
</form>
But this will work only for one task, not for a group of tasks! Any
ideas on how to do things like that in Cake?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---