+1 regarding Yarko's suggestion. Putting common code into modules is probably the easiest way to have it visible to all controllers. It seems a little kludgy at first, but you get used to it. The one thing to be aware of is that models get executed in alphabetic order. So you may want to stick a number or letter at the beginning of the model name, like A_, B_, C_, etc. to control order of execution. Like I said, a little kludgy, but you get used to it. You will not have this issue if you use the modules approach.
- [web2py] Documentation on moving common code into modules? David Mitchell
- Re: [web2py] Documentation on moving common code into... Robert O'Connor
- [web2py] Re: Documentation on moving common code ... Yarko Tymciurak
- [web2py] Re: Documentation on moving common code into... Richard
- [web2py] Re: Documentation on moving common code ... Yarko Tymciurak
- [web2py] Re: Documentation on moving common code into... weheh
- Re: [web2py] Re: Documentation on moving common c... David Mitchell
- Re: [web2py] Re: Documentation on moving comm... Thadeus Burgess

