Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Oop? Mvc?

  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Oop? Mvc?

    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!

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    A lot of people are cakephp lovers, or codeigniter although personally I don't much like frameworks
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by JAY6390 View Post
    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.

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,472
    Thanks
    13
    Thanked 361 Times in 357 Posts
    Quote Originally Posted by myriad360 View Post
    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?

  • #5
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    @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
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by myriad360 View Post
    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/Multipl...nce#Criticisms


    best regards

  • #7
    New Coder
    Join Date
    Mar 2006
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •