#110 new
benjaminhill (at gmail)

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

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.

New-ticket Create new ticket

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/

Tags

Pages