| 1 |
|
|---|
| 2 | Upgrading Instructions for PRADO Framework v3.0.7
|
|---|
| 3 | =================================================
|
|---|
| 4 |
|
|---|
| 5 | !!!IMPORTANT!!!
|
|---|
| 6 |
|
|---|
| 7 | After installing the framework, remember to delete everything under
|
|---|
| 8 | your PRADO application's assets and runtime directories.
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | The following upgrading instructions are cumulative. That is,
|
|---|
| 12 | if you want to upgrade from version A to version C and there is
|
|---|
| 13 | version B between A and C, you need to following the instructions
|
|---|
| 14 | for both A and B.
|
|---|
| 15 |
|
|---|
| 16 | Upgrading from v3.0.6
|
|---|
| 17 | ---------------------
|
|---|
| 18 |
|
|---|
| 19 | Upgrading from v3.0.5
|
|---|
| 20 | ---------------------
|
|---|
| 21 | - TRepeater does not render <span> anymore for empty item template.
|
|---|
| 22 | - constructUrl() now encodes ampersand by default. This should have minimal
|
|---|
| 23 | impact on any existing PRADO applications, though.
|
|---|
| 24 | - TDataGrid does not generate default table styles. This may affect
|
|---|
| 25 | the appearance of existing PRADO applications that use TDataGrid.
|
|---|
| 26 | - If TUrlMapping is used, you need to set the UrlManager property of
|
|---|
| 27 | THttpRequest to the module ID of TUrlMapping.
|
|---|
| 28 | - TJavascriptLogger toggle key is changed from ALT-D to ALT-J.
|
|---|
| 29 | Use the ToggleKey property chanage to a different key.
|
|---|
| 30 | - Javascript Library rico was REMOVED.
|
|---|
| 31 |
|
|---|
| 32 | Upgrading from v3.0.4
|
|---|
| 33 | ---------------------
|
|---|
| 34 | - TFileUpload::saveAs() will return false instead of raising an exception
|
|---|
| 35 | if it encounters any error.
|
|---|
| 36 | - TDropDownListColumn.DataField is renamed to DataTextField and
|
|---|
| 37 | DataFormatString is renamed to DataTextFormatString.
|
|---|
| 38 | A new property named DataValueField is added.
|
|---|
| 39 |
|
|---|
| 40 | Upgrading from v3.0.3
|
|---|
| 41 | ---------------------
|
|---|
| 42 | - The 'Static' value is changed to 'Fixed' for the Display property of
|
|---|
| 43 | all validators as well as TValidationSummary, due to conflict with PHP keywords.
|
|---|
| 44 | - The 'List' value is changed to 'SimpleList' for TValidationSummary.DisplayMode.
|
|---|
| 45 | - The 'List' value is changed to 'DropDownList' for TPager.Mode
|
|---|
| 46 | - This change affects existing client-side javascript handlers such as
|
|---|
| 47 | <com:TRequiredFieldValidator ClientSide.OnSuccess="xxx" />
|
|---|
| 48 | All ClientSide javascript event handlers (such as ClientSide.OnSuccess)
|
|---|
| 49 | are by default wrapped within the function block.
|
|---|
| 50 | function(sender, parameter){ // handler code }
|
|---|
| 51 | You may override this behaviour by providing your own javascript statement block
|
|---|
| 52 | as "javascript:MyHandlerFunction", e.g. ClientSide.OnSuccess="javascript:MyHandlerFunction"
|
|---|
| 53 | or ClientSide.OnSuccess="javascript:function(validator,sender){ ... }"
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | Upgrading from v3.0.2
|
|---|
| 57 | ---------------------
|
|---|
| 58 | - The minimum PHP version required is raised to 5.1.0 and above.
|
|---|
| 59 | If your server is installed with a lower version of PHP, you will
|
|---|
| 60 | have to upgrade it in order to run PRADO applications.
|
|---|
| 61 | - The signature of TControl::broadcastEvent() is changed from
|
|---|
| 62 | broadcastEvent($sender,TBroadCastEventParameter $param) to
|
|---|
| 63 | broadcastEvent($name,$sender,$param).
|
|---|
| 64 | This makes the call to broadcastEvent() to be consistent with raiseEvent().
|
|---|
| 65 |
|
|---|
| 66 | Upgrading from v3.0.1
|
|---|
| 67 | ---------------------
|
|---|
| 68 | - Postback enabled control will always disable default client-side browser action.
|
|---|
| 69 | This is due to google toolbar's interference of event stopping scheme.
|
|---|
| 70 | This modification should only affect user-derived postback javascripts.
|
|---|
| 71 |
|
|---|
| 72 | Upgrading from v3.0.0
|
|---|
| 73 | ---------------------
|
|---|
| 74 | - URL format is modified when THttpRequest.UrlFormat=='Path'.
|
|---|
| 75 | This modification affects both the URLs generated by calling constructUrl()
|
|---|
| 76 | and the URLs understood by PRADO. In particular, PRADO now understands
|
|---|
| 77 | the following URL format:
|
|---|
| 78 | /index.php/ServiceID,ServiceParam/Name1,Value1/Name2,Value2/...
|
|---|
| 79 | In v3.0.0, the above URL is written as:
|
|---|
| 80 | /index.php/ServiceID/ServiceParam/Name1/Value1/Name2/Value2/...
|
|---|
| 81 | - TControl::onBubbleEvent() has been changed to TControl::bubbleEvent().
|
|---|
| 82 | This change only affects user controls that override this method.
|
|---|
| 83 |
|
|---|
| 84 | Upgrading from v2.x and v1.x
|
|---|
| 85 | ----------------------------
|
|---|
| 86 | PRADO v3.x is not backward compatible with v2.x and v1.x. |
|---|