migration-18.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="migration.18">
  4. <title>Zend Framework 1.8</title>
  5. <para>
  6. When upgrading from a previous release to Zend Framework 1.8 or higher you
  7. should note the following migration notes.
  8. </para>
  9. <sect2 id="migration.18.zend.controller">
  10. <title>Zend_Controller</title>
  11. <sect3 id="migration.18.zend.controller.router">
  12. <title>Standard Route Changes</title>
  13. <para>
  14. As translated segments were introduced into the new standard
  15. route, the '<emphasis>@</emphasis>' character is now a special character
  16. in the beginning of a route segment. To be able to use it in a
  17. static segment, you must escape it by prefixing it with second
  18. '<emphasis>@</emphasis>' character. The same rule now applies for the
  19. '<emphasis>:</emphasis>' character.
  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>
  47. <!--
  48. vim:se ts=4 sw=4 et:
  49. -->