migration-18.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 24249 -->
  3. <!-- Reviewed: no -->
  4. <sect1 id="migration.18">
  5. <title>Zend Framework 1.8</title>
  6. <para>
  7. Lors de la migration d'un version précédente vers Zend Framework 1.8 ou plus récent
  8. vous devriez prendre note de ce qui suit.
  9. </para>
  10. <sect2 id="migration.18.zend.controller">
  11. <title>Zend_Controller</title>
  12. <sect3 id="migration.18.zend.controller.router">
  13. <title>Changement de la route standard</title>
  14. <para>
  15. Comme les segments traduits ont été ajoutés dans la nouvelle route standard, le
  16. caractère <code>@</code> est maintenant un caractère spécial au début d'un segment
  17. de route. Pour être capable de l'utiliser dans un segment statique, vous devez
  18. l'échapper en le préfixant avec un second <code>@</code>. La même règle s'applique
  19. aussi au caractère <code>:</code>.
  20. </para>
  21. </sect3>
  22. </sect2>
  23. <sect2 id="migration.18.zend.locale">
  24. <title>Zend_Locale</title>
  25. <sect3 id="migration.18.zend.locale.defaultcaching">
  26. <title>Default caching</title>
  27. <para>
  28. As with Zend Framework 1.8 a default caching was added. The reason behind this
  29. change was, that most users had performance problems but did not add caching at
  30. all. As the I18n core is a bottleneck when no caching is used we decided to add
  31. a default caching when no cache has been set to <classname>Zend_Locale</classname>.
  32. </para>
  33. <para>
  34. Sometimes it is still wanted to prevent caching at all even if this decreases
  35. performance. To do so you can simply disable caching by using the
  36. <methodname>disableCache()</methodname> method.
  37. </para>
  38. <example id="migration.18.zend.locale.defaultcaching.example">
  39. <title>Disabling default caching</title>
  40. <programlisting language="php"><![CDATA[
  41. Zend_Locale::disableCache(true);
  42. ]]></programlisting>
  43. </example>
  44. </sect3>
  45. </sect2>
  46. </sect1>