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
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
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
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
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
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-
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
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
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', '