On 8 June 2012 14:43, Anthony <[email protected]> wrote:
> In that sentence, [controller] is a placeholder for the actual name of the
> controller (that's why it's in brackets) -- it is not meant to refer to the
> "controllers" folder. The full path would be:
> /web2py/applications/[application]/views/[controller]/[function].json.

OK, that makes sense.

Robin

> Anthony
>
>
> On Friday, June 8, 2012 9:11:38 AM UTC-4, Robin Wood wrote:
>>
>> I think I've just found a typo in the official book. Page
>>
>> http://web2py.com/books/default/chapter/29/3
>>
>> In a grey box there is this sentence
>>
>> If an extension other than "html" is specified ("json" for example),
>> and the view file "[controller]/[function].json" is not found, web2py
>> looks for the view "generic.json".
>>
>> Shouldn't the view file be in views not controller?
>>
>> Robin

Reply via email to