Relative Content

Tag Archive for mvc

Is it best practice to have a file only of “includes/requires”?

I have 5-10 files on one server that all catch XMLRPC-PHP requests. There’s about 20 lines of require_once in each one that are all the same. It’d make life simpler for me to create a separate file that only has the requires and require that in my XMLRPC files. Is this best practice, or does it open up issues that I don’t know about?

Would this constitute MVC – even in a very loose sense?

I’ve been working on a kind of CRM for the sales guys in our office – not as a job role but as a spare time task type of thing – I don’t claim to be a developer or anything like that, but I would definitely like to pursue a career as a web developer down the line, I just think I need a much stronger understanding of OOP principles and design patterns such as MVC before I could even consider it.

Zend Framework View Helper Composition

So I’m reviewing a piece of code that is a perfect candidate to be abstracted away into a view helper. However at the moment, the piece of code uses two other view helpers to get the final display.