It won't let me edit my post so I'm going to add some more details below. Essentially what I'm trying to accomplish (without the use of ugly iframe hackery) is to be able to (via ajax) use another controller's view within my video controller that will still apply the model's validation, etc... I just want to see how you are accomplishing this or if it's just crazy :)
Thanks mucho On May 11, 10:14 am, jwerd <[email protected]> wrote: > I don't know if this is very practical or if it's bad design, but I > have a scenario where I need to use another controller's view in a > seperate controller, but I want all the automagicness, all the > formatting, etc... > > Basically, I'll give you the real world example: > > I have a video display page, and I want users to be able to comment on > a certain video. > > I've set up two controllers to accomplish this: > > contents (where the videos are stored) > contents_comments (where the comments for those videos are stored) > > I want to be able to use a view from contents_comments in contents/ > view/#video_id#/ so the user can add a comment and it's sent via ajax. > > is there a practical design or good design habit any of you have used? > > Thanks in advanced. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
