How can I specify at least one is required between HABTM models
I am developing a backup plan module for my application, where use can specify multiple items to be backed up. To save a backup plan, at least one item should be specified by the user. How can I add this requirement to my model validation. I am using the select-multiple checkbox to get the user input. data[BackupPlan] = name, description data[BackupPlan][BackupItem] = id1, id2, id3 Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Need help for pushing CakePHP for a high traffic project
Hi Nate, I am a fan of cake and have used it in the following production site that I build last december. www.lowimpactliving.com I am pushing for cake to be used in one very large project which is going to be extremely high traffic. Probably around 50,000 hits at a time. I need some more information regarding the scaling and performance to present my case to the board. Could you also let me know some sample sites that are high traffic? Because the Board likes to see real numbers and real sites. This is a great chance for our community to be proudly involved. Could you please help me out here? Thank you. Regards, Pranav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: A strange but very critical bug in my app using cake ajax
AD7six, Thanks for your response. I checked the code. I am still not able to solve this. Because this is happening when I edit a category also. If, as you said, my existing category is being overwritten, then while editing, I should end up in 2 categories with the same name. But what happens is that I loose one. And the category I loose is not necessarily the one I edited. Usually its not. So what you said would only apply to adding a new category. The category list page is completely Ajax. There is a list of all categories on this page. When you click edit on any category, The view changes to edit form for that category. Then when you save, the edit form disappears and the view mode of that category appears again with the changed data. It is during this operation where I loose the category. Thanks again for your reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
A strange but very critical bug in my app using cake ajax
Hi guys, I have built the site on cakePHP. It was really a great experience. I a having this very strange but extremely critical bug in it. Here is the structure. Categories hasMany subCategories hasMany Products... simple right? Now I have built my category/subcategory management page using ajax helper. What happens 'some random times' is that while I am adding a category or updating a categry, some of the categories gets deleted misteriously. I am not able to track down the cause of the problem. Did anyone have any such problem? Do you have any recommendations on how to go about debuggin this one. I have tried a lot, but as I said, as it only happens 'some random times', I am just not able to reproduce it upon wish. Thanks in advance. I would really appreciate any bit of help on this one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---