oop website

Discussion in 'PHP' started by oliviergwada, Jun 26, 2012.

  1. #1
    hi friend,
    i use to build website with drupal and now id like to php to build oop website..
    ive some good basis with java oop and mvc.What would you recommend to me to do ?
    I think if i see full structure of a oop website,it could help me..
    Tutorials are welcome
    thanks all
     
    oliviergwada, Jun 26, 2012 IP
  2. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #2
    The thing is with PHP... it's such a lenient flexible language which allows you to easily write BAD code. But also at the same time you have all the tools to write elegant well structured code. You aren't forced to using an OOP approach but it fully supports it.

    I build the majority of my web sites with PHP using the Zend Framework. ZF is a "use at will" framework which allows you to pick and choose whatever components you want to use without being forced in to doing something one specific way. Or you can use it as a full blown MVC framework. You can rapidly build complex web applications easily and quickly with ZF. The only major draw back is the learning curve. While a framework speeds up the development process...it has the reverse effect when you throw in the fact that you have to learn how to use it. There's lots of docs...a lot are also out dated.

    If you want to build commercial web apps for PHP I would advise you to look in to Zend Framework. If you are looking for a nice MVC framework without that whole corporate feeling there is Cake, CodeIgniter and Symfony.

    Personally...if you AREN'T building a huge web site you can get away with building a PHP app using your own collection of man made classes and be fine. Whatever you do, just don't roll your own framework.
     
    NetStar, Jun 26, 2012 IP
  3. oliviergwada

    oliviergwada Greenhorn

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    thanks for answering starr,
    i think i should learn one php framework....what is the most popular between Zend and Symfony according to you ?

    thanks again
     
    oliviergwada, Jun 27, 2012 IP
  4. akhileshbc

    akhileshbc Active Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    5
    Trophy Points:
    75
    #4
    I had used CodeIgniter and it was pretty easy. At first I decided to use Zend FW, when I first decided to learn a FW. But the documentation had given me a scary feeling at first glance itself :)
    So I dropped that and instead picked CodeIgniter. It's pretty easy to learn from the online docs and I was able to get a grip on it after spending a few hours on the docs.
     
    akhileshbc, Jun 27, 2012 IP
  5. oliviergwada

    oliviergwada Greenhorn

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #5
    thanks for answering.... I think ill try yo use CodeIgniter as you said.I got oop basis and i think codeIgniter is really easy to use..(just watch the tutorial and it seems easy ) ...

    anyway i still need some other point of view because i think CodeIgniter have some limit..
     
    oliviergwada, Jun 27, 2012 IP
  6. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #6
    I use the Zend Framework because it is made by the company that owns the rights to PHP. It's trusted in the corporate world and it's a well structured framework. So I would recommend ZF on the stability alone.
     
    NetStar, Jun 27, 2012 IP
  7. oliviergwada

    oliviergwada Greenhorn

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #7
    ok thanks for answering, i think ill try Zend Fw,if i have a big project..
     
    oliviergwada, Jun 28, 2012 IP