On Feb 10, 2011, at 12:04, RLR wrote: > On Feb 10, 2011, at 11:48, RLR wrote: > >> As soon as I put the following line in app_controller the Auth >> component and redirecting breaks with the following errors: >> >> App::import('Vendor', 'DateCalc', array('file' => 'date_calc.php')); >> >> Error in browser: >> Cannot modify header information - headers already sent by (output >> started at path-to-my-app/app/vendors/date_calc.php:1 > > As soon as I take the App:Import statement out everything works
Then there is something about the file you're importing -- or one of the files that file is importing -- that's causing this. If it's not something deliberately being echo'd out, then perhaps whitespace before opening <?php tag or after closing ?> tag? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php