Yii Framework is one the best framework in PHP space on Web Application Development & Console Application Development besides Zend Framework and CodeIgniter Framework.
When you’re beginning to learn Yii Framework, you need a good starting point to understand Yii Framework and its capabilities. To fulfill this requirement, Jeffrey Winesett has written a book “Web Application Development with Yii and PHP”, published by PacktPub. If I say in one line –
Nicely gathered, articulated, structured, and provides an insight of Yii Framework
Book Details
Title: Web Application Development with Yii and PHP
Language: English
Paperback: 332 pages
Release Date: November 2012
Edition: Second Edition
ISBN: 1849518726
ISBN 13: 9781849518727
Author: Jeffrey Winesett
Errata And Resolution
I got an opportunity to review “Web Application Development with Yii and PHP” book and observed few errata. I’m presenting that errata and its resolution here that will help readers in a best way. However, I’m not going to repeat [no point in doing that :)] an errata details which are already covered at Found Errata.
Chapter 5 – Managing Issues at Page No 98
Migration script create create_issue_user_and_assignment_tables has incorrect foreign-key column name error.
Incorrect:
//the tbl_issue.project_id is a reference to tbl_project.id $this->addForeignKey("fk_issue_project", "tbl_issue", project_id", "tbl_project", "id", "CASCADE", "RESTRICT");
Should be:
$this->addForeignKey("fk_issue_project", "tbl_issue", "id", "tbl_project", "id", "CASCADE", "RESTRICT");
Chapter 8 – Adding User Comments – Page No 218
Class name is incorrect, it also important this class error affects many places across book [where comments widget is used]
class RecentCommentsWidget extends CWidge
Should be:
class RecentComments extends CWidget
Chapter 8 – Adding User Comments – Page No 220
Referred Widget name is incorrect:
<?php $this->widget('RecentCommentsWidget'); ?>
Should be:
<?php $this->widget('RecentComments'); ?>
Chapter 8 Adding User Comments – Page No 221
Referred Widget name is incorrect:
$this->widget('RecentCommentsWidget');
Should be:
$this->widget('RecentComments');
Chapter 11 – Using Yii Modules – Page No 274
Highlighted code has typo mistake of closing bracket:
<div id="logo"><?php echo CHtml::encode(Yii::app()->name) . " Admin Console"; ?></div>
Should be:
<div id="logo"><?php echo CHtml::encode(Yii::app()->name . " Admin Console"); ?></div>
Chapter 11 – Using Yii Modules – Page No 279
Migrate command is missing create keyword, incorrect:
$ ./yiic migrate create_system_messages_table
Should be:
$ ./yiic migrate create create_system_messages_table
Chapter 12 – Production Readiness – Page No 314
Comments widget name is incorrect:
$this->widget('RecentCommentsWidget');
Should be:
$this->widget('RecentComments');
Conclusion
Book “Web Application Development with Yii and PHP” absolutely provides an insight, structured guidance for beginner to take advantage of Yii Framework.
PS: I have captured all the errata I come across, I might have overlooked some pages. If you have come across any leave a comment here, I will update this article.