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

Json output problem #4

Closed
voltan opened this issue Mar 25, 2013 · 5 comments
Closed

Json output problem #4

voltan opened this issue Mar 25, 2013 · 5 comments
Labels

Comments

@voltan
Copy link
Member

voltan commented Mar 25, 2013

Hello

check both of this links please :

http://www.payamakyab.com/sms/json/index/id/1
http://www.payamakyab.com/sms.php

first link is static JSON output in PHP file and second link is JSON make whit pi codes whit this codes

$this->view()->setTemplate(false)->setLayout('layout-content');
return Json::encode($message);

first link work fine on mobile app ( android ) but second link doesn't work on app. And have HTML tags in source. How I can make JSON output without any HTML tag? or perhaps whit .json extension ?

@voltan
Copy link
Member Author

voltan commented Mar 26, 2013

Perhaps an option like this is not bad : http://www.robjstanley.com/zend-framework-disable-layout-no-render-view/

@gwisdomroof
Copy link

Is the following code proper?

echo Json::encode($message);
exit;

@voltan
Copy link
Member Author

voltan commented Mar 27, 2013

Thanks

I update codes and android app team will test it

@voltan
Copy link
Member Author

voltan commented Apr 8, 2013

@voltan
Copy link
Member Author

voltan commented Apr 10, 2013

This problem solved, Header not set in request

@voltan voltan closed this as completed Apr 10, 2013
krisxoofoo added a commit that referenced this issue May 7, 2013
Fixes issue for redirection bug
taiwen pushed a commit that referenced this issue Aug 2, 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