I figured it out - it was because there was a whitespace at the end of the component file from where I had cut/paste the code :-)
On Feb 27, 11:50 am, Staple <[email protected]> wrote: > Hi, > > I am doing a small project to learn the beautiful intricacies of > cakePHP and I have a small problem. > > In my controller I am using a ReCaptcha component and it works well > for my "add record" form, I include the component like this... > > class ResourcesController extends AppController { > > var $name = 'Resources'; > > var $uses = array('Resource', 'Contact'); > > var $components = array('Recaptcha'); > > var $paginate = array('Resource' => array( > 'limit' => 20, > 'order' => 'Resource.created DESC' > ) > ); > > But when I am in a "view all" action for some reason the ReCaptcha > component causes this error... > > Cannot modify header information - headers already sent by (output > started at /mnt/hgfs/Medianoche-C/Workspace/recirculate/app/ > controllers/components/recaptcha.php:135) > > Any help much appreciated. > > Gwilym --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
