uhm.
response.flash is just a convention. the convention is that there is a 
{{=response.flash}} anywhere in the page (where you want the message to 
show).
if you use your own layout.html, just use {{=response.flash}} as the 
placeholder you'd like to be turned to the actual message.

if you're instead having problems with fragments and/or javascript, what 
xmarx suggested is completely right. If you want to go full blast with 
personalization, you'll need to override web2py.js's flash(). hide_flash() 
and, possibly, main_hook().

On Friday, February 5, 2016 at 10:35:31 AM UTC+1, Joe wrote:
>
> I tried this before I posted my question and it didn't work. Also, as I 
> mentioned in my post, I am not using the layout.html 
>
> On Friday, February 5, 2016 at 5:19:54 PM UTC+8, xmarx wrote:
>>
>> add this code to your view anywhere you want.
>> {{=response.flash}}
>>
>> in layout.html 
>> <div class="w2p_flash alert alert-dismissable">{{=response.flash or ''}}
>> </div>
>>
>>
>> 5 Şubat 2016 Cuma 09:57:25 UTC+2 tarihinde Joe yazdı:
>>>
>>> If I am not using {{extend 'layout.html'}} how can I make the 
>>> response.flash working in my template?
>>> Thanks.
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to