I'm not sure why you would need to render an element from within a controller? As far as I know this is not the intended purpose of elements.
If this is a controller method called via AJAX then I believe you should be rendering a "view". In the view file, you then include the element you want to render. On May 18, 3:52 am, UGn <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm really stuck on a (i guess it's a simple) thing and i would really > appreciate > someone helping me with it.. > > The problem is: > > I have an element which renders the first productimage belonging to a > product and the navigation to the next images (with AJAX links). > To update this element i need some params (photo_data, new photo_id, > and product_id (for navigation)). > > But from my controller i cannot use renderElement so i use: > > $this->render(null,'ajax',DS.'elements'.DS.'productimage_view'); > > so how can i get my params with this render? > > thnx in advance, > > UGn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
