Hello, I wonder how should I create a " add comment form" of the model Comment that should be displayed in anothers model controller (for example ThemesController). I tried it these ways:
1. I've created a add_comment() action in ThemesController and then an appropriate view, but the problem was with the that form validation, I just can' validate it, it doesn't worked. Don't know ho to work around it. But I didn't like this solution as I don't want to mix my controllers logic ec. 2. I've created a add.ctp element for CommentsController, and I'm including that element in the ThemesController view through $this- element(..). Now the validation seems to work, but the problem is that if there occurs an validation error I'm redirected not back to that view where the form is included, but to the /controllers/comments/ add.ctp, which I don't use and I don't know how to solve that behavior. 3. Is there a better solution? (I've also played with requestAction, but I had some problems there too, I'm not sure which solution should be the right as I'm a CakePHP newbie. Thank you in advance for your answers. --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
