From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../documentation/manual/core/en/migration.10.html | 389 +++++++++++++++++++++ 1 file changed, 389 insertions(+) create mode 100644 zend/documentation/manual/core/en/migration.10.html (limited to 'zend/documentation/manual/core/en/migration.10.html') diff --git a/zend/documentation/manual/core/en/migration.10.html b/zend/documentation/manual/core/en/migration.10.html new file mode 100644 index 0000000..007343f --- /dev/null +++ b/zend/documentation/manual/core/en/migration.10.html @@ -0,0 +1,389 @@ + + +
+ +
+
+ Zend Framework 1.0+ When upgrading from a previous release to Zend Framework 1.0 or higher you + should note the following migration notes. + + +Zend_Controller+ The principal changes introduced in 1.0.0RC1 are the introduction of + and default enabling of the + ErrorHandler + plugin and the ViewRenderer + action helper. Please read the documentation to each thoroughly to + see how they work and what effect they may have on your + applications. + + ++ The ErrorHandler plugin runs during + postDispatch() checking for exceptions, and forwarding + to a specified error handler controller. You should include such a + controller in your application. You may disable it by setting the + front controller parameter noErrorHandler: + + +
+ The ViewRenderer action helper automates view injection + into action controllers as well as autorendering of view scripts + based on the current action. The primary issue you may encounter is + if you have actions that do not render view scripts and neither + forward or redirect, as the ViewRenderer will attempt + to render a view script based on the action name. + + ++ There are several strategies you can take to update your code. In + the short term, you can globally disable the + ViewRenderer in your front controller bootstrap prior + to dispatching: + + +
+ However, this is not a good long term strategy, as it means most + likely you'll be writing more code. + + ++ When you're ready to start using the ViewRenderer + functionality, there are several things to look for in your + controller code. First, look at your action methods (the methods + ending in 'Action'), and determine what each is doing. If none of + the following is happening, you'll need to make changes: + + +
+ The easiest change is to disable auto-rendering for that method: + + +
+ If you find that none of your action methods are rendering, + forwarding, or redirecting, you will likely want to put the above + line in your preDispatch() or init() + methods: + + +
+ If you are calling render(), and you're using the Conventional Modular + directory structure, you'll want to change your code to + make use of autorendering: + + +
+ If you're not using the conventional modular directory structure, + there are a variety of methods for setting the view base path and + script path specifications so that you can make use of the + ViewRenderer. Please read the ViewRenderer + documentation for information on these methods. + + ++ If you're using a view object from the registry, or customizing your + view object, or using a different view implementation, you'll want + to inject the ViewRenderer with this object. This can + be done easily at any time. + + +
+ There are many ways to modify the ViewRenderer, + including setting a different view script to render, specifying + replacements for all replaceable elements of a view script path + (including the suffix), choosing a response named segment to + utilize, and more. If you aren't using the conventional modular + directory structure, you can even associate different path + specifications with the ViewRenderer. + + ++ We encourage you to adapt your code to use the + ErrorHandler and ViewRenderer as they are + now core functionality. + +Zend_Currency+ Creating an object of Zend_Currency has become simpler. + You no longer have to give a script or set it to NULL. The optional + script parameter is now an option which can be set through the + setFormat() method. + + +
+ The setFormat() method takes now an array of options. These + options are set permanently and override all previously set values. Also a new option + 'precision' has been added. The following options have been refactored: + + +
+ The toCurrency() method no longer supports the optional + 'script' and 'locale' parameters. Instead it takes an options array which + can contain the same keys as for the setFormat() method. + + ++ The methods getSymbol(), + getShortName(), getName(), + getRegionList() and + getCurrencyList() are no longer static and can be called + from within the object. They return the set values of the object if no + parameter has been set. + ++ +
|
+
+
|
+