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

How to handle ajax requests ? #656

Closed
bribrink opened this issue May 11, 2015 · 2 comments
Closed

How to handle ajax requests ? #656

bribrink opened this issue May 11, 2015 · 2 comments
Labels

Comments

@bribrink
Copy link

How is everyone handling ajax calls? I'm going to build a pretty ajax-intensive project on top, want to prevent spaghetti...
Just curious...

@panique
Copy link
Owner

panique commented May 12, 2015

It's supereasy, simply use renderWithoutHeaderAndFooter() instead of render() in the controller. Or, if you want to put out JSON, like in most AJAX calls, do it with renderJSON($normalArray). You can find this inside core/View.php and look how it works.

@panique panique changed the title ajax How to handle ajax requests ? May 12, 2015
@bribrink
Copy link
Author

Thank you! I'm new to this. I like the simplicity;
On May 12, 2015 6:04 AM, "Chris" [email protected] wrote:

It's supereasy, simply use renderWithoutHeaderAndFooter() instead of
render() in the controller. Or, if you want to put out JSON, like in most
AJAX calls, do it with renderJSON($normalArray). You can find this inside
core/View.php and look how it works.


Reply to this email directly or view it on GitHub
#656 (comment).

@panique panique closed this as completed May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants