From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../documentation/manual/core/en/migration.16.html | 209 +++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 zend/documentation/manual/core/en/migration.16.html (limited to 'zend/documentation/manual/core/en/migration.16.html') diff --git a/zend/documentation/manual/core/en/migration.16.html b/zend/documentation/manual/core/en/migration.16.html new file mode 100644 index 0000000..9fdd979 --- /dev/null +++ b/zend/documentation/manual/core/en/migration.16.html @@ -0,0 +1,209 @@ + + + + + Zend Framework 1.6 - Zend Framework Manual + + + + + + + + +
+ + + + + + + + +
+ Zend Framework 1.7 + + + + +
+
+

Zend Framework 1.6

+ + +

+ When upgrading from a previous release to Zend Framework 1.6 or higher you + should note the following migration notes. +

+ +

Zend_Controller

+ + +

Dispatcher Interface Changes

+ + +

+ Users brought to our attention the fact that + Zend_Controller_Front and + Zend_Controller_Router_Route_Module were each + using methods of the dispatcher that were not in the dispatcher + interface. We have now added the following three methods to + ensure that custom dispatchers will continue to work with the + shipped implementations: +

+ +
    +
  • +

    + getDefaultModule(): should return the name of + the default module. +

    +
  • + +
  • +

    + getDefaultControllerName(): should return the + name of the default controller. +

    +
  • + +
  • +

    + getDefaultAction(): should return the + name of the default action. +

    +
  • +
+
+
+ +

Zend_File_Transfer

+ + +

Changes when using validators

+ + +

+ As noted by users, the validators from Zend_File_Transfer + do not work the same way like the default ones from + Zend_Form. Zend_Form allows the usage + of a $breakChainOnFailure parameter which breaks the validation + for all further validators when an validation error has occurred. +

+ +

+ So we added this parameter also to all existing validators from + Zend_File_Transfer. +

+ +
    +
  • +

    + Old method API: addValidator($validator, + $options, $files). +

    +
  • + +
  • +

    + New method API: addValidator($validator, + $breakChainOnFailure, $options, $files). +

    +
  • +
+ +

+ To migrate your scripts to the new API, simply add a + FALSE after defining the wished validator. +

+ +

Example #1 How to change your file validators from 1.6.1 to 1.6.2

+ + +
  1. // Example for 1.6.1
  2. +
  3. $upload = new Zend_File_Transfer_Adapter_Http();
  4. +
  5. $upload->addValidator('FilesSize', array('1B', '100kB'));
  6. +
  7.  
  8. +
  9. // Same example for 1.6.2 and newer
  10. +
  11. // Note the added boolean false
  12. +
  13. $upload = new Zend_File_Transfer_Adapter_Http();
  14. +
  15. $upload->addValidator('FilesSize', false, array('1B', '100kB'));
+ +
+
+
+
+
+ + + + + + + + + +
+ Zend Framework 1.7 + + + + +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.3