Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>OOP is a methodology used to organise your code into meaningful, reusable entities and it doesn't alone answer to the question of "how to best organize your code to create web applications".</strong></p> <p>Most of the web frameworks use Model-View-Controller architecture (MVC) along with OOP. In order to understand how web frameworks work, I suggest you to familiarize yourself with MVC as well (for a starting point, see <a href="http://www.codinghorror.com/blog/2008/05/understanding-model-view-controller.html" rel="nofollow">"Coding Horror: Understanding Model-View-Controller"</a>)</p> <p>Also, regardless of any frameworks, it is crucial to understand some basic concepts when creating web applications. At the minimum, familiarize yourself with how sessions work (<a href="http://www.php.net/manual/en/book.session.php" rel="nofollow">http://www.php.net/manual/en/book.session.php</a>), as well as how you can access databases (<a href="http://php.net/manual/en/book.pdo.php" rel="nofollow">PDO</a> for generic database connectivity, <a href="http://php.net/manual/en/book.mysql.php" rel="nofollow">MySQL</a> for MySQL-specific binding, etc.). </p> <p>As for what web framework to choose, the options are plenty. Therefore consider the following pointers as informative:</p> <ul> <li>Yii Framework has a pretty clean OOP-based design (<a href="http://www.yiiframework.com/" rel="nofollow">http://www.yiiframework.com/</a>)</li> <li>Another popular object-oriented PHP framework is CakePHP (<a href="http://cakephp.org/" rel="nofollow">http://cakephp.org/</a>)</li> <li>For a more light-weight framework with less overhead, consider CodeIgniter (<a href="http://codeigniter.com/" rel="nofollow">http://codeigniter.com/</a>)</li> <li>The <em>de facto</em> web framework for PHP is Zend (<a href="http://framework.zend.com/" rel="nofollow">http://framework.zend.com/</a>). Its huge, comprehensive, well-supported, but not always the perfect companion when travelling light.</li> <li>Also note that <em>if you organize your code according to MVC, you may find yourself most comfortable when not using any frameworks at all</em></li> </ul> <p>Also note that unlike in Java, in PHP object-oriented features have been slowly added during its versions 4 and 5. Therefore, many web frameworks designed for earlier versions of PHP may not provide you as cleanly object-oriented design as you might want. Therefore when choosing a framework, consider whether you opt-in for backward-compatibility (PHP4 support) or are you seeking for a clean, object-oriented design in the framework (mostly PHP5 required).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload