My code was working fine with sessions but when i added the email(phpmailer),
I am getting the below error when i use email(phpmailer) component and
checking the session
If i comment var $components = array('Email');, everything works fine. Pls
help me in this regard
CODE
<?php
class ProductsController extends AppController
{
var $helpers = array("html","Javascript");
var $components = array('Email');
function beforeFilter()
{
$this->checkSession();
}
//rest of the code
Error
Warning: Cannot modify header information - headers already sent by (output
started at
C:\apache2triad\htdocs\cakeapp\app\controllers\components\email.php:116) in
C:\apache2triad\htdocs\cakeapp\cake\libs\controller\controller.php on line
447
--
View this message in context:
http://www.nabble.com/Bug-while-using-PHPmailer-tp15452984p15452984.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---