Introducción a Zend Framework

 Aprendiendo Zend Framework


 Referencia de Zend Framework

  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Traducción al 26.9% - Actualizado el 2011-11-16 - Revisión 24249 - Versión ZF 1.11.x

    B.5. Zend Framework 1.6

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

    B.5.1. Zend_Controller

    B.5.1.1. 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.

    B.5.2. Zend_File_Transfer

    B.5.2.1. 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.

    Ejemplo B.14. How to change your file validators from 1.6.1 to 1.6.2

    // Example for 1.6.1
    $upload = new Zend_File_Transfer_Adapter_Http();
    $upload->addValidator('FilesSize', array('1B''100kB'));

    // Same example for 1.6.2 and newer
    // Note the added boolean false
    $upload = new Zend_File_Transfer_Adapter_Http();
    $upload->addValidator('FilesSize'false, array('1B''100kB'));

    digg delicious meneame google twitter technorati facebook