There are two types of frameworks. push and pull. In the pull
frameworks, the url maps into a view and the view calls multiple
controller actions. In the push, the url maps into one controller
action which renders one ore more views. web2py (as well as Django,
Pylons, and Rails) are push.

The only way one subset of the page can call a different controller is
if they ask the client to do it via AJAX.

<div class="unit">
      <div class="container">
             {{=LOAD('default','sidebar',ajax=True)}} # calls
sidebar() is default.py
     </div>
 </div>



On Feb 14, 4:08 am, salbefe <salb...@gmail.com> wrote:
> Hello,
>
> I need to built a left sidebar from a database. In the main layout
> file I have the following code:
> ........................................
> ........................................
> <div class="unit">
>      <div class="container">
>             {{include 'default/leftsidebar.html'}}
>     </div>
> </div>
>
> The problem is how I can built the leftsidebar. After reading chapter
> 5 in the web2py book is not clear to me.
> It is possible to make a controller, reading the database inside that
> controller and pass the result to the leftsidebar.html view???
>
> Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to