Advertisement
jacmoe

Guide page

Nov 27th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.87 KB | None | 0 0
  1. <div class="row">
  2. <div class="col-md-12 col-lg-10">
  3. <h1>What is Yii <span id="what-is-yii"></span><a href="#what-is-yii" class="hashlink">&para;</a></h1>
  4. <div class="toc hidden-lg"><ol><li><a href="#what-is-yii-best-for">What is Yii Best for?</a></li>
  5. <li><a href="#how-does-yii-compare-with-other-frameworks">How does Yii Compare with Other Frameworks?</a></li>
  6. <li><a href="#yii-versions">Yii Versions</a></li>
  7. <li><a href="#requirements-and-prerequisites">Requirements and Prerequisites</a></li></ol></div>
  8. <p>Yii is a high performance, component-based PHP framework for rapidly developing modern Web applications.
  9. The name Yii (pronounced <code>Yee</code> or <code>[ji:]</code>) means "simple and evolutionary" in Chinese. It can also
  10. be thought of as an acronym for <strong>Yes It Is</strong>!</p>
  11. <h2>What is Yii Best for? <span id="what-is-yii-best-for"></span><a href="#what-is-yii-best-for" class="hashlink">&para;</a></h2><p>Yii is a generic Web programming framework, meaning that it can be used for developing all kinds
  12. of Web applications using PHP. Because of its component-based architecture and sophisticated caching
  13. support, it is especially suitable for developing large-scale applications such as portals, forums, content
  14. management systems (CMS), e-commerce projects, RESTful Web services, and so on.</p>
  15. <h2>How does Yii Compare with Other Frameworks? <span id="how-does-yii-compare-with-other-frameworks"></span><a href="#how-does-yii-compare-with-other-frameworks" class="hashlink">&para;</a></h2><p>If you're already familiar with another framework, you may appreciate knowing how Yii compares:</p>
  16. <ul>
  17. <li>Like most PHP frameworks, Yii implements the MVC (Model-View-Controller) architectural pattern and promotes code
  18. organization based on that pattern.</li>
  19. <li>Yii takes the philosophy that code should be written in a simple yet elegant way. Yii will never try to
  20. over-design things mainly for the purpose of strictly following some design pattern.</li>
  21. <li>Yii is a full-stack framework providing many proven and ready-to-use features: query builders
  22. and ActiveRecord for both relational and NoSQL databases; RESTful API development support; multi-tier
  23. caching support; and more.</li>
  24. <li>Yii is extremely extensible. You can customize or replace nearly every piece of the core's code. You can also
  25. take advantage of Yii's solid extension architecture to use or develop redistributable extensions.</li>
  26. <li>High performance is always a primary goal of Yii.</li>
  27. </ul>
  28. <p>Yii is not a one-man show, it is backed up by a <a href="http://www.yiiframework.com/about/">strong core developer team</a>, as well as a large community
  29. of professionals constantly contributing to Yii's development. The Yii developer team
  30. keeps a close eye on the latest Web development trends and on the best practices and features
  31. found in other frameworks and projects. The most relevant best practices and features found elsewhere are regularly incorporated into the core framework and exposed
  32. via simple and elegant interfaces.</p>
  33. <h2>Yii Versions <span id="yii-versions"></span><a href="#yii-versions" class="hashlink">&para;</a></h2><p>Yii currently has two major versions available: 1.1 and 2.0. Version 1.1 is the old generation and is now in maintenance mode. Version 2.0 is a complete rewrite of Yii, adopting the latest
  34. technologies and protocols, including Composer, PSR, namespaces, traits, and so forth. Version 2.0 represents the current
  35. generation of the framework and will receive the main development efforts over the next few years.
  36. This guide is mainly about version 2.0.</p>
  37. <h2>Requirements and Prerequisites <span id="requirements-and-prerequisites"></span><a href="#requirements-and-prerequisites" class="hashlink">&para;</a></h2><p>Yii 2.0 requires PHP 5.4.0 or above. You can find more detailed requirements for individual features
  38. by running the requirement checker included in every Yii release.</p>
  39. <p>Using Yii requires basic knowledge of object-oriented programming (OOP), as Yii is a pure OOP-based framework.
  40. Yii 2.0 also makes use of the latest features of PHP, such as <a href="http://www.php.net/manual/en/language.namespaces.php">namespaces</a> and <a href="http://www.php.net/manual/en/language.oop5.traits.php">traits</a>. Understanding these concepts will help
  41. you more easily pick up Yii 2.0.</p>
  42. </div>
  43. <div class="col-lg-2 visible-lg">
  44.     <nav id="scrollnav" data-spy="affix">
  45.         <ul class="nav hidden-xs hidden-sm">
  46.             <li><a href="#what-is-yii">What is Yii?</a></li>
  47.             <li><a href="#what-is-yii-best-for">What is Yii Best for?</a></li>
  48.             <li><a href="#how-does-yii-compare-with-other-frameworks">How does Yii Compare with Other Frameworks?</a></li>
  49.             <li><a href="#yii-versions">Yii Versions</a></li>
  50.             <li><a href="#requirements-and-prerequisites">Requirements and Prerequisites</a></li>
  51.         </ul>
  52.     </nav>
  53. </div>
  54. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement