On 8 June 2012 14:46, Robin Wood <ro...@digininja.org> wrote:
> On 8 June 2012 14:43, Anthony <abasta...@gmail.com> 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.

This one is definitely a typo though:

Here is yet another better wat to create the same form:

>From the same URL.

Robin

> 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