TigerZF
🌐English

Appendix B. Zend Framework Migration Notes

Table of Contents

B.1. Zend Framework 1.12
B.1.1. Zend_View_Helper_Navigation
B.2. Zend Framework 1.10
B.2.1. Zend_Controller_Front
B.2.2. Zend_Feed_Reader
B.2.3. Zend_File_Transfer
B.2.3.1. Security change
B.2.3.2. Count validation
B.2.4. Zend_Filter_HtmlEntities
B.2.5. Zend_Filter_StripTags
B.2.6. Zend_Translate
B.2.6.1. Xliff adapter
B.2.7. Zend_Validate
B.2.7.1. Self written validators
B.2.7.2. Simplification in date validator
B.2.7.3. Fixes in Alpha, Alnum and Barcode validator
B.3. Zend Framework 1.9
B.3.1. Zend_File_Transfer
B.3.1.1. MimeType validation
B.3.2. Zend_Filter
B.3.3. Zend_Http_Client
B.3.3.1. Changes to internal uploaded file information storage
B.3.3.2. Deprecation of Zend_Http_Client::_getParametersRecursive()
B.3.4. Zend_Locale
B.3.4.1. Deprecated methods
B.3.5. Zend_View_Helper_Navigation
B.3.6. Security fixes as with 1.9.7
B.3.6.1. Zend_Dojo_View_Helper_Editor
B.3.6.2. Zend_Filter_HtmlEntities
B.3.6.3. Zend_Filter_StripTags
B.4. Zend Framework 1.8
B.4.1. Zend_Controller
B.4.1.1. Standard Route Changes
B.4.2. Zend_Locale
B.4.2.1. Default caching
B.5. Zend Framework 1.7
B.5.1. Zend_Controller
B.5.1.1. Dispatcher Interface Changes
B.5.2. Zend_File_Transfer
B.5.2.1. Changes when using filters and validators
B.5.2.1.1. Filter: Rename
B.5.2.1.2. Validator: Count
B.5.2.1.3. Validator:Extension
B.5.2.1.4. Validator: FilesSize
B.5.2.1.5. Validator: Hash
B.5.2.1.6. Validator: ImageSize
B.5.2.1.7. Validator: Size
B.5.3. Zend_Locale
B.5.3.1. Changes when using isLocale()
B.5.3.2. Changes when using getDefault()
B.5.4. Zend_Translate
B.5.4.1. Setting languages
B.5.5. Zend_View
B.5.5.1. Disabling LFI protection for the render() method
B.6. Zend Framework 1.6
B.6.1. Zend_Controller
B.6.1.1. Dispatcher Interface Changes
B.6.2. Zend_File_Transfer
B.6.2.1. Changes when using validators
B.7. Zend Framework 1.5
B.7.1. Zend_Controller
B.8. Zend Framework 1.0
B.8.1. Zend_Controller
B.8.2. Zend_Currency
B.9. Zend Framework 0.9
B.9.1. Zend_Controller
B.10. Zend Framework 0.8
B.10.1. Zend_Controller
B.11. Zend Framework 0.6
B.11.1. Zend_Controller

B.1. Zend Framework 1.12

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

B.1.1. Zend_View_Helper_Navigation

Prior to the 1.12 release, a helper with the name "My_View_Helper_Navigation_Menu" can not be used, because the proxy helper returns always the standard view helper "Zend_View_Helper_Navigation_Menu".

Starting from version 1.12, you can use our own navigation helpers with the name "menu", "breadcrumbs", ...

Create your own helper with name "Menu":

class My_View_Helper_Navigation_Menu
    extends Zend_View_Helper_Navigation_HelperAbstract
{
    public function menu(Zend_Navigation_Container $container = null)
    {
        if (null !== $container) {
            $this->setContainer($container);
        }

        return $this;
    }

    public function render(Zend_Navigation_Container $container = null)
    {
        return '<nav>Example</nav>';
    }
}

Add the helper path to Zend_View in your Bootstrap class:

    protected function _initView()
    {
        $this->bootstrap('view');
        $this->view->addHelperPath(
            'path/to/helper',
            'My_View_Helper_Navigation'
        );
    }

Or add the helper path in your "application.ini" file:

resources.view.helperPath.My_View_Helper_Navigation = "path/to/helper"

The following code is used in a view script:

<?php echo $this->navigation()->menu(); ?>

Output:

<nav>Example</nav>