Common Practice -OR- Bad Practice (Controller/Library Interaction) |
[eluser]haydenp[/eluser]
How do your Controllers and Libraries interact? Below is an example (not tested but provides an idea) of what I think is not the best approach but is sometimes the easiest approach. What are your views on having some Libraries set the properties of the Controller and other Libraries call the properties of the Controller. Is this Common Practice -OR- Bad Practice? Below is a basic example of what I am referring to ... I'd love to get a better understanding of how other developers allow their Controllers and Libraries interact with each other. www.my_websites.com/my_controller/my_page CONTROLLER. Code: class My_controller extends Controller LIBRARY ONE. Code: class Library_example_one LIBRARY TWO. Code: class Library_example_two |
Messages In This Thread |
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-26-2010, 06:03 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-26-2010, 06:09 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-26-2010, 06:47 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-26-2010, 08:16 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-26-2010, 10:27 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-27-2010, 04:36 AM
Common Practice -OR- Bad Practice (Controller/Library Interaction) - by El Forum - 01-27-2010, 04:52 AM
|