Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Respons not working on Micro applications. #1717

Closed
mrspartak opened this issue Dec 20, 2013 · 3 comments
Closed

[BUG] Respons not working on Micro applications. #1717

mrspartak opened this issue Dec 20, 2013 · 3 comments

Comments

@mrspartak
Copy link

This two codes are not working.
https://gist.github.com/mrspartak/94c70fb83a32a71a39db
https://gist.github.com/mrspartak/790eddb6619aff75634b

Works only if i write header("Location: /login");

@ghost
Copy link

ghost commented Dec 21, 2013

I guess you forgot to add sendHeaders(), ie

$app->response->redirect("login")->sendHeaders();

@mrspartak
Copy link
Author

Thanks a lot! So documentation is needed to be fixed http://docs.phalconphp.com/en/latest/reference/micro.html#making-redirections

@ghost
Copy link

ghost commented Dec 21, 2013

Yes — could you please open a bug here: https://github.com/phalcon/docs/issues/new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants