Unable to use JSON format URL
Reported by benjaminhill (at gmail) | January 18th, 2010 @ 04:43 PM | in 0.20
Tried to follow the webcast with my own data model. Created a
model (chatter) and tried to add one. Worked fine. Now, tried to
load the data in a json format:
http://localhost/recess/gchat/chatter/1.json
This errors out with
Unable to provide desired content-type. Does the view
"chatter/details" exist?
Location: Line 91 of
C:\xampplite\htdocs\recess\recess\recess\framework\DefaultPolicy.class.php
I then took the advice of the comment in getViewFor and removed
the conditional, and presto, JSON support works.
Question: Why doesn't it work to start with? And is the fix I did the correct one?
Version: Latest from SVN as of Jan 18, 2010.
Comments and changes to this ticket
-
Keuntae Shin September 21st, 2010 @ 12:50 PM
- Milestone order changed from 0 to 0
Hey, u must write this annotation to your controller.class
Library::import('recess.framework.forms.ModelForm');
/* !RespondsWith Layouts, Json !Prefix king/ / class kingController extends Controller {
like this, your annotation should contain a comma
- !RespondsWith Layouts Json <-- Wrong
- !RespondsWith Layouts, Json <-- Right
-
Erik Diver November 9th, 2011 @ 11:14 AM
If be honest I think the essay service can be a good way out for many blogs!
-
Erik Diver November 13th, 2011 @ 12:49 PM
I must admit that your resume writers are very much professional
-
janesamz October 28th, 2012 @ 11:33 PM
Judging from the onslaught of books, articles, and blog posts extolling Steve Jobs' virtues and condemning his vices.
wholesale cheap jerseys
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Recess PHP Framework is an open source, full stack, RESTful PHP framework.
http://www.recessframework.org/