where to put interfaces in mvc
Posted: Wed Apr 20, 2011 2:32 pm
Hi all,
Sorry if this is in the wrong section but here goes!
I have developed my own mini framework to use for testing and I have started to use interfaces. At the moment I have an interface for my abstraction object in my controllers where I then implement as part of my class. I'm not sure where interfaces are actually supposed to live - in a separate file / section?
Not sure how the 'commercial' frameworks such as zend et al integrate interfaces into the MVC architecture (as I am new to these too!)?
Any pointers / insight would be much appreciated.
Thanks in advance.
Regards,
Paul
Sorry if this is in the wrong section but here goes!
I have developed my own mini framework to use for testing and I have started to use interfaces. At the moment I have an interface for my abstraction object in my controllers where I then implement as part of my class. I'm not sure where interfaces are actually supposed to live - in a separate file / section?
Not sure how the 'commercial' frameworks such as zend et al integrate interfaces into the MVC architecture (as I am new to these too!)?
Any pointers / insight would be much appreciated.
Thanks in advance.
Regards,
Paul