Although both author and PACKT Publishing have taken every care to ensure the accuracy of book content, mistakes do happen. If you find a mistake in the book—maybe a mistake in the text or the code—we would be grateful if you would report this. If it will be confirmed it will be listed at this page.
If you're not sure if it's errata or not, you can open a new thread at Yii framework forum.
The following is the list of errata for all the book editions available. Thanks for your reports.
Page | Current | Should be |
---|---|---|
5 | Alexander Makar |
Alexander Makarov |
17 | second can be used to prevent calling all other, not yet executed handlers, by setting it to false |
second can be used to prevent calling all other, not yet executed handlers, by setting it to true . |
21 | curl_close($url); |
curl_close($curl); |
29 | $list->add('java') |
$list->add('java'); |
29 | $anotherList = new CList(array('python', 'ruby')); |
$anotherList = new CList(array('python', 'ruby'), true); |
44 | echo $this->createUrl('website/page', 'alias' => 'about'); |
echo $this->createUrl('website/page', array('alias' => 'about')); |
44 | echo $this->createAbsoluteUrl('website/page', 'alias' => 'test'); |
echo $this->createAbsoluteUrl('website/page', array('alias' => 'test')); |
44 | CWebApplication:: |
CWebApplication::createUrl |
58,59 | $this->redirect('post/index'); |
$this->controller->redirect('post/index'); |
60 | $this->redirect($this->redirectTo); |
$this->controller->redirect($this->redirectTo); |
80 | jQuery('body'). |
jQuery('body').on('click','#yt0',function() |
85 | <h2><?php echo $ |
<h2><?php echo $object?> events</h2> |
85 | $.each(json |
$.each(json,function(){ |
86 | $this->widget("ext.yiicookbook. |
$this->widget("ext.yiicookbook.EYiiCookbook" |
107 | handlePut and handlePost signatures and implementations should be swapped. |
|
114 | As mentioned previously, the |
As mentioned previously, the application backend conforms to REST. |
114 | is create, is update, get is read, and delete is delete |
post is create, put is update, get is read, and delete is delete |
119 | Creating a custom input widget with |
Creating a custom input widget with CInputWidget |
129 | array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()) |
array('verifyCode', 'captcha', 'allowEmpty'=>!(CCaptcha::checkRequirements()&& Yii::app()->user->isGuest)) |
132 | $rand = mt_rand(1, $code-1); |
$rand = mt_rand(min(1, $code-1), max(1, $code-1)); |
149 | such as assertTrueassertFileExists |
such as assertTrue , assertFileExists |
242 | When you are running an application and passing a route such as api/get prior to executing ApiController::actionGet Yii controllerMap defined. |
When you are running an application and passing a route such as api/get, prior to executing ApiController::actionGet Yii checks if controllerMap is defined. |
247 | if (substr($file, - |
if (substr($file, -1) == DIRECTORY_SEPARATOR) |
259, 262 | throw new CException(Yii::t('ext','View file " |
throw new CException(Yii::t('ext','View file "{file}" does not exist.', array('{file}'=>$sourceFile))); |
333 | As we can see, a criteri |
As we can see, a criteria allows |