|
Hi Folks,
Can anyone help me regarding this. http://stackoverflow.com/questions/11864306/how-to-display-a-grid-of-checkboxes-in-cakephp-for-add-action With Best Regards, Mohit Kumar +91-9582894570 -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Any idea guys?
With Best Regards, Mohit Kumar +91-9582894570 On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar <[hidden email]> wrote: Hi Folks, -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
i'm not understanding you well, describe more about your problem..
-- Lep pozdrav, Tilen Majerle 2012/8/10 mohit kumar <[hidden email]> Any idea guys? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
How can i display the data in this format. [] are checkboxes
With Best Regards, Mohit Kumar +91-9582894570 On Fri, Aug 10, 2012 at 2:30 PM, Tilen Majerle <[hidden email]> wrote: i'm not understanding you well, describe more about your problem.. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar <[hidden email]> 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 [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
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 +91-9582894570 On Fri, Aug 10, 2012 at 2:51 PM, Mike Griffin <[hidden email]> wrote:
-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
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-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
In reply to this post by mohit kumar
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar <[hidden email]> wrote:
> 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 > Yes, it will. Once again, have you tried it? Please read the manual and understand it, it's all in there. Mike. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
| Powered by Nabble | Edit this page |
