Archives For yii

In this edition…

Continue Reading…

In this edition…

Continue Reading…

Yii2, What’s New

June 22, 2012

Alexander Makarov, recently gave a presentation at the Yiiconf 2012 (note that site is in Russian) titled “Yii2, What’s New“. In the presentation, Makarov, one of the core Yii framework developers and the author of the Yii 1.1 Application Development Cookbook, discussed both Yii’s current status and the expected changes in the upcoming Yii version 2. I believe that an alpha version of Yii2 will be out later this summer (and, in fact, I’ll be coordinating the writing of [intlink id=”3187″ type=”post”]my Yii book[/intlink] with the release of Yii2).

The presentation quickly explains where Yii current stands, how Yii got to be here, and where Yii is going in the future. There’s even a reference to yours truly!

In this edition…

Continue Reading…

Using the Model-View-Controller (MVC) design pattern, the look of a Yii-based site is naturally controlled by the View files. These files are a combination of HTML and PHP that help to create the desired output. Specific pages in a site will use specific View files. In fact, the View files are designed to be broken down quite atomically, such that, for example, the form used to both create and edit an employee record is its own file, and that file can be included by both create.php and update.php. As with most things in OOP, implementing atomic, decoupled functionality goes a long way towards improving reusability. But the individual View files are only part of the equation for rendering a Web page. Individual view files get rendered within a layout file. And although I’ve mentioned layouts a time or two in my writings on Yii, it’s a subject that deserves its own post. Continue Reading…