...

View Full Version : Oop? Mvc?



myriad360
01-15-2010, 03:49 AM
I am starting on a third PHP project at work, and this one is a team project. But we not only took on more of PHP classes and OOP, but we are now trying to use PHP inheritance. And it is strictly linear (see 'extends'). But we need something that is not just linear, and I have heard MVC could help. I am just curious if anyone could suggest a MVC group, or a better way than OOP in PHP, that could help with dealing with the control flow of web applications.

Thanks!

JAY6390
01-15-2010, 03:52 AM
A lot of people are cakephp lovers, or codeigniter although personally I don't much like frameworks

myriad360
01-15-2010, 05:51 AM
A lot of people are cakephp lovers, or codeigniter although personally I don't much like frameworks

Thanks, I went and watched the codeigniter tutorial... I am not much for frameworks or ide's either, man. But I actually learned what the php mvc implementation was like, and might implement my own. I have done certain web things over and over in php, and I am really ready for some OOP to make web project completion a lot faster for those redundant things. And in this case, I might be ready for my own MVC framework, as much as I don't like the other implementations.

But I am not sure if I have found a non-linear PHP class inheritance solution yet...

Cheers.

Dormilich
01-15-2010, 10:23 AM
But I am not sure if I have found a non-linear PHP class inheritance solution yet...
wouldn’t that be resembled by the Factory or Facade Pattern?

JAY6390
01-15-2010, 01:40 PM
@myriad - I think of the two frameworks above, codeigniter is definitely the easier of the two, and the second video shows just how quick you can make a simple blog, although I'm pretty sure those videos are 4 or more years old, so it has improved significantly since then... I'm just not sure why it's not been updated on there

oesxyl
01-15-2010, 07:50 PM
Thanks, I went and watched the codeigniter tutorial... I am not much for frameworks or ide's either, man. But I actually learned what the php mvc implementation was like, and might implement my own. I have done certain web things over and over in php, and I am really ready for some OOP to make web project completion a lot faster for those redundant things. And in this case, I might be ready for my own MVC framework, as much as I don't like the other implementations.

But I am not sure if I have found a non-linear PHP class inheritance solution yet...

Cheers.
there are other architecture you can use not only mvc:

http://c2.com/cgi/wiki?CategorySoftwareArchitecture

for example:

http://c2.com/cgi/wiki?FourLayerArchitecture

about single versus multiple inheritance:

http://en.wikipedia.org/wiki/Multiple_inheritance#Criticisms


best regards

myriad360
01-25-2010, 07:47 PM
Interesting, I'll have to look at the other architectures. We have been going through MVCs, and I think we are now looking at Ruby on Rails. I don't know Ruby, and I guess the Rails has a steep learning curve.... but, not my decision. And it looks like it will be able to be a framework for all our future projects, which is the overall goal. I'll try to post feedback on that.

We tried other MVC's like Django (python), but its apps/modules didn't seem to work well with LDAP.

CodeIgniter will be my PHP MVC / Dev framework for busting out stuff until then, just out of simplicity. Maybe the other frameworks might work better (anyone care to explain the advantages?). Almost wish we were just going with something like CodeIgniter anyway.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum