Errata for Pro Zend Framework Techniques ( Apress )

errors, typos

  1. Page 23, 24 - stylesheet reference in the <head> links to `temp_design/css/style.css` yet the file path of the stylesheet on the next page is `temp_design/layout.css`, I just saved it in css/layout.css and updated the link reference.
  2. Page 27 - (nitpick) - spitting out the xml prolog would cause the page to be rendered in quirks mode in IE, I suggest just omitting it entirely and strictly spit out the doctype at the top of the page.
  3. Page 47 - `new Form_BugReport();` should be `new Form_BugReportForm();` as indicated later on, this will fail include otherwise.
  4. Page 97 - "Create a new file in the application/forms folder named Page.php" - the filename is "PageForm.php".
  5. Page 97 - "class Form_PageFormForm" should be "class Form_PageForm".
  6. Page 146 - `Listing 8-2. The User Model Class in application/user/models/User.php` - The correct path is application/models/User.php.
  7. Page 175 - The legend for Listing 9-7 is incorrect, the path should be applications/forms/SearchForm.php, not applications/form/Search.php.
  8. Final source code - Line 30 of `application/models/Menu.php` Zend_Registry::get('cache ') - kill the trailing space after cache or it'll throw an error.
  9. Final source code - application/modules/contact/Forms should be application/modules/contact/forms, lowercase it and when you access /contact it will find the class. However, this triggers another error and sends content before the HTTP headers
  10. Final source code - there's whitespace at the end of application/modules/contact/controllers/IndexController.php which you need to kill in order for it to be processed correctly.
  11. Final source code - the `contact` module will not work initially because it's setup to account for a file attachment whereas the form does not have one. If you want this to work without bothering with file attachments, comment out the `$fileControl = $frmContact` snippet in `application/modules/contact/controllers/IndexController` and get rid of the if statement. You'll need to provide login credentials in order for the Zend Mail to work as well.

warnings

  1. Page 99 - if on *nix, don't forget to create public/images/upload and chmod that to 777