Re: Why i get this warning

2009-01-11 Thread Amit Badkas
If you look at the code on line number specified in error message then you may find problem's cause. You can also try by removing end PHP tag 2009/1/10, mona : > > > I m getting this warning when i m adding a > record > Cannot modify header information - headers already sent by (output > started a

Why i get this warning

2009-01-10 Thread mona
I m getting this warning when i m adding a record Cannot modify header information - headers already sent by (output started at /home/maheep/domains/phraseout.com/public_html/cakephp/ styleguide/controllers/entries_controller.php:50) [CORE/cake/libs/ controller/controller.php, line 615] I remove

Re: Why i get this warning

2009-01-09 Thread Femi Taiwo
In your users_controller.php, remove the closing ?> tag. If the error does not occur, then it's a whitespace that is causing the issue. You should make sure that your controllers do not contain any lines after or before your opening and closing php tags Femi On Fri, Jan 9, 2009 at 12:46 PM, m

Why i get this warning

2009-01-09 Thread mona
Warning (2): Cannot modify header information - headers already sent by (output started at /home/maheep/domains/phraseout.com/public_html/ cakephp/styleguide/controllers/users_controller.php:71) [CORE/cake/ libs/controller/controller.php, line 615] when i upload my cakephp project on the server i

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Oh I found the answer with Mike's help. Should be rewritten to: Please log in. formTag('/users/login') ?> Username: inputTag('User/username', array()) ?> Password: passwordTag('User/password', array()) ?> submitTag('login') ?> link('register', '/users/register') ?> Helpful to those who try t

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Thank you! Solved the problem! Another question from the code above- http://localhost/users/login gives this: Parse error: syntax error, unexpected ')', expecting '(' in /var/www/ cake/app/views/users/login.thtml on line 11. The login.thtml was copied from IBM tutorial. I guessed that $html-

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the end of the file. Erase it. On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('Us

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the en of the file. Erase it... On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('U

Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on lin

2007-10-04 Thread val
Instead redirecting, i get this.. Any Ideas? login.thml: Please log in. form('/users/login') ?> Username: input('User/username', array) ?> Password: password('User/password', array) ?> submit('login') ?> link('register', '/users/register') ?> users_controller.php: set('username_error', '