http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array

Dana petak, 10. kolovoza 2012. 11:24:07 UTC+2, korisnik mohit napisao je:
>
> thanks Mike.. Let me try that . But the problem is my controller that i 
> generated by the bake is like
>
> user - 
> shift - 
> save so with 1 form 1 can save only one user, will it be possible for me 
> to save multiple mappings with one go
>
> *With Best Regards,
> Mohit Kumar <http://kumarmohit.com>*
> *+91-9582894570*
>
>
>
> On Fri, Aug 10, 2012 at 2:51 PM, Mike Griffin <[email protected]<javascript:>
> > wrote:
>
>> On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar 
>> <[email protected]<javascript:>> 
>> wrote:
>> > How can i display the data in this format. [] are checkboxes
>> >
>> >
>> > Users   Shift1 shift2 shift3 shift4
>> > user1    []      []     []     []
>> > user2    []      []     []     []
>> > user3    []      []     []     []
>> > user4    []      []     []     []
>> > user5    []      []     []     []
>> >
>>
>> Is this something like what you are looking for?
>>
>>
>> <?php
>> echo "<table>";
>> foreach($users as $u) {
>>   // output the users name here, as the first cell of a table, for example
>>   echo "<tr><td>".$u['name']."</td>";
>>   for($i=0; $i<5; $i++) {
>>     // output the shifts here
>>     echo "<td>[CODE FOR CHECKBOX]</td>";
>>   }
>>   // finish the row in the table
>>   echo "</tr>";
>> }
>> echo "</table>";
>>
>> Mike.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to