ullright upgrade to symfony 1.1
- install symfony 1.1 (see this document)
- cd /var/www/ullright/
- cp /usr/share/php/symfony1.1/lib/task/generator/skeleton/project/symfony .
- cp /usr/share/php/symfony1.1/lib/task/generator/skeleton/project/config/ProjectConfiguration.class.php config/
- vi config/ProjectConfiguration.class.php
-
<?php require_once '/usr/share/php/symfony1.1/lib/autoload/sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { } }
-
- ./symfony project:upgrade1.1
- vi apps/frontend/config/settings.yml
-
all .settings: compat_10: on #symfony 1.0 compatibility mode
-
- apps/frontend/config/setting.yml
- add
-
# set default_culture to invalid 'xx_XX' to detect unset culture and # allow auto-detect browser HTTP accept-language by i18nFilter default_culture: xx_XX
-
- remove
-
timeout: 50000 # Session timeout, in seconds
-
- add
- apps/frontend/config/factories.yml
- add
-
i18n: class: sfI18N param: source: XLIFF # debug: off # untranslated_prefix: "[T]" # untranslated_suffix: "[/T]" # cache: # class: sfFileCache # param: # automatic_cleaning_factor: 0 # cache_dir: %SF_I18N_CACHE_DIR% # lifetime: 86400 # prefix: %SF_APP_DIR%
-
user: class: myUser param: timeout: 1000000 # session timeout in seconds
-
routing: class: sfPatternRouting param: load_configuration: true suffix: . # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on. default_module: myModule # Default module and action to be called when default_action: index # A routing rule doesn't set it
-
- add
.
- rm config/config.php
- removed plugins/ullWikiPlugin/config/config.php
- batch files (e.g. db migrations) have to start like
-
require_once(dirname(__FILE__).'/../../../config/ProjectConfiguration.class.php'); $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'cli', true); sfContext::createInstance($configuration); $databaseManager = new sfDatabaseManager($configuration); $databaseManager->loadConfiguration();
-
todo:
- startpage / login / language selection
- DONE (fixed invalid module names)
- ullWiki
- invalid module name (ullwiki instead of ullWiki) -> Bug #181 -> Denny
- ullAdmin / ullTabletool
- ullFlow
- batch jobs?
- updated latest db_update_... script