wCMF Wiki : Howto

HomePage :: Categories :: PageIndex :: RecentChanges :: Login/Register
= How to migrate from 1.1 to 2 =
You can migrate your solution from version 1.1 to version ["Version2.0"] by manually change the code or regenerating the application.

= manually change the code =
step 0
overwrited the WCMF directory with the new one and restart your app.


step 1
In application\include\config.INI file section [implementation] the key ValueRenderer = DefaultValueRenderer is missing.

added it and add also in [classmapping] the following value.

DefaultValueRenderer = wcmf/lib/presentation/class.DefaultValueRenderer.php


step 2
Unknown input control 'text' (C:\apachefriends\xampp\htdocs\wcmf\lib\presentation\class.DefaultValueRenderer.php, 93).

add

[htmldisplay]

text = wcmf/application/views/display/text.tpl

image = wcmf/application/views/display/image.tpl

at the end of the application\include\config.INI file


step 3
copy the required navigation gif in application\images

*note*

such standard images should be in the \wcmf not in \application


step 4
If you don't see the navigation copy the standard CSS in application\style

*note*

such standard CSS should be in the \wcmf not in \application


step 5
If you have issue with the view delete the smarty cache under application/include/views/smarty/templates_c


step 6
to display lists you need to manually change the code of the mappers (eg class.ObjectNameRDBMapper.php)

in

$nodeDef['_properties'] = array (

PROTECTED REGION ID(application/include/model/class.PlugInRDBMapper.php/Properties) START PROTECTED REGION END

add

$nodeDef['_properties'] = array (

PROTECTED REGION ID(application/include/model/class.PlugInRDBMapper.php/Properties) START

array('name' => 'display_value', 'value' => TitleofYourField),

PROTECTED REGION END

step 7 manual order of fields
tbd


step 8 manytomany class
tbd



= regenerating the application =
TBD
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1329 seconds