a, i c, it's open my mind, thank you so much for your advised. i'll try to
follow your advised. which is better to put the menu functionality that been
used by many views (same code in many views, the link is related with
database (request.args))?

thank you so much in advance.

best regards,

steve van christie

On Wed, Apr 13, 2011 at 4:04 PM, pbreit <pbreitenb...@gmail.com> wrote:

> If used by one controller, put in controller.
> If used by multiple controllers, put in models.
> If has little or no access to the DB or other Web2py global functionality,
> put in module.
>
> In theory there is a minor performance hit in adding code to models since
> all models are loaded on every call. But it's generally not something that
> most projects need to worry about and definitely not something to worry
> about in the beginning.
>
> It's best to keep things simple and focus on building your application
> functionality.
>

Reply via email to