adrzei Posted August 22, 2015 Report Posted August 22, 2015 Hi,Is it possible to return only json on a tab method instead of a complete rendered view?
Blesta Addons Posted August 22, 2015 Report Posted August 22, 2015 just decode the ouput by json . something like echo $this->outputAsJson($this->view->fetch("your_view_file")); o by var $this->outputAsJson($response); serge and adrzei 2
adrzei Posted August 23, 2015 Author Report Posted August 23, 2015 On 8/22/2015 at 10:53 PM, naja7host said: just decode the ouput by json . something like echo $this->outputAsJson($this->view->fetch("your_view_file")); o by var $this->outputAsJson($response); ?? The method outputAsJson() doesn't exist? If I return json string instead of a view, the main view is yet builded.
adrzei Posted August 23, 2015 Author Report Posted August 23, 2015 Problem solved.Solution: exit(json_encode($arrayOrSomethingElse));
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now