Search:

Support for php|architect’s Guide to Programming with Zend Framework

SQL Errata

On page 43, the SQL command to create the member table is incorrect. The correct one is:

CREATE TABLE member (
id int(10) unsigned NOT NULL auto_increment,
emailAddress varchar(80) default NULL,
userPassword varchar(50) default NULL,
firstName varchar(50) default NULL,
lastName varchar(50) default NULL,
PRIMARY KEY (id)
);

Thanks to Zachary Burnham.

=C=

24.Jan.08 Errata Read more Comments (0)

‘noViewRendered’ will result in ‘viewRendered’

My buddy Zachary sent me an email today pointing out these two bits of errata.

On page 13, a line of code is missing:

Zend_Loader::registerAutoload();

On page 22 is the following paragraph:

If you followed the instructions in the last chapter then you already have most of
what we need to make this work. However, we do have three changes to make.
First, open your bootstrap file (index.php) and remove the line:

$frontController->setParam('noViewRendered', true); 

We will be using view scripts to handle the output in this sample.

The parameter should be ‘noViewRenderer’.

$frontController->setParam('noViewRenderer', true); 

Both of these are correct in the sample code but incorrect in the final manuscript.

Thanks Zachary!

=C=

22.Jan.08 Errata Read more Comments (17)

app==application for most values of app

In chapter two, when I am describing how to setup your bootstrap file, I missed renaming the app directory to application. This appears on or around page 15 below the sub-heading “Step 3: Creating Your Bootstrap”.

Original:

$frontController->setControllerDirectory(’c:/web/htdocs/app/controllers/’);

Corrected:

$frontController->setControllerDirectory(’c:/web/htdocs/application/controllers/’);

The example code is correct however, so if you are too lazy to type in the code yourself, you would have never noticed.

Many thanks to Zachary Burnham for finding and reporting this.

=C=

21.Jan.08 Errata Read more Comments (0)