Michael Yevdokimov wrote:
Hi again This is all interesting. So basically you mean that there can not be no such a term in MVC for PHP, like there is for ROR? I am curious what you think about Propel as a tool to 'emulate' models in php mvc? Though I would still agree that this is again just an ORM and not more than that.
I just say that the *implementation* and the following *usage* of ROR-like models will definitely differ in PHP from that of Ruby.
To be honest, I do not use any of these ORM things. I am still making SQL queries myself or with some visual software.
So? ZF is offering you great functionality, which will help you reduce the amount of code in your applications.
I created my own 'model controller' with the methods like insert, delete, etc. which actually just creating queries which are being sent later to ADODB php library. so from this 'model controller' I inherit all my models. Otherwise, I think there will be too much mass in my code.
This reminds me something. I think I have seen that... ah, sure. I've seen that in ZF ;) (ok, almost every PHP-framework offers some sort of decision for thise kind of problems)
I am curious what others do with the missing Model Controller?? ;)
Personally, I usually have two kinds of models: one for DB tables/rows, and another for *domain/business* logic/relations. And I can say that there are situations when Domain Model acts as a controller (or at least we can say so).
Cheers, Mikhail
smime.p7s
Description: S/MIME Cryptographic Signature
