Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 11-04-2007 19:01:52

stephane
Membre
Lieu: Biot
Date d'inscription: 26-03-2007
Messages: 33
Site web

Migration de Zend Framework 0.8 à 0.9.2

Une vraie galère ! Je savais bien que cela ne serait pas évident, mais il m'a fallu quand même une bonne journée de travail pour migrer vers la dernière version de Zend Framework. Et encore, j'ai deux plugins chargés de gérer l'affichage de messages (pour l'utilisateur) qui ne fonctionnent plus et que je vais devoir revoir.

Voilà un peu l'étendue des dégâts :

Code:

  Updated framework (library and incubator)
  Removed all imports (Zend::loadClass) to use autoloading feature (so a lot of constructors were stripped down)
  Updated registry calls (from Zend::register to Zend_Registry::set and from Zend::registry to Zend_Registry::get)
  Moved view management from index.php to controller (no more stored in the registry)
  Reworked all controllers to not reference the view script name in the calls to the render() method and to access the view now available from the parent controller class
  Added new init() and initView() method to the parent controller class to set up the view component and reworked the render() method to comply with the new rendering mechanism
  Updated any reference to a database table column because of the change in the naming scheme (no more camelcased)
  Renames use of Zend::dump() into Zend_Debug::dump()
  Reworked the custom Filter_Input class as the Zend_Filter_Input has been removed. Imported the getRaw(), keyExists(), noTags() and testOneOf() methods from this former Zend class. Updated some validation code to make use of the new Validation architecture.
  Reworked the log component. Replaced Zend_Log_Writer_File by Zend_Log_Writer_Stream. Also made use of a new class Zend_Log_Formatter_Simple to handle the message's format.
  Took care of file moves and renamings.

Ca pourra peut-être aider des personnes dans la même situation que moi (il y a aussi le guide de Philippe). Désolé si c'est en anglais, mais que je code tout dans la langue de Shakespeare.

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages