Project

General

Profile

Actions

Enhancement(機能追加・改善) #1198

closed

[optimization] プロフィール編集画面で毎回 regions.yml をパースしている

Added by Yuki Kan over 14 years ago. Updated over 14 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2010-06-23
Due date:
2010-06-23
% Done:

100%

Estimated time:

Description

Ovarview

プロフィール編集画面で毎回 regions.yml をパースしている

Way to fix

プロフィール編集画面で毎回 regions.yml をパースしていたのを修正

lib/config/config/config_handlers.ymlに以下を追加

config/regions.yml:
  class: sfSimpleYamlConfigHandler

lib/util/opFormItemGenerator.class.phpの132行目を

-$list = sfYaml::load(sfConfig::get('sf_lib_dir').'/config/config/regions.yml');
+$list = (array)include(sfContext::getInstance()->get ConfigCache()->checkConfig('config/regions.yml'));

と変更

Actions #1

Updated by Yuki Kan over 14 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 b257d6daeea247b5b2116f18ef40ed88765dbafd で適用されました。

Actions #2

Updated by Shogo Kawahara over 14 years ago

  • Subject changed from 【チューニング】プロフィール編集画面で毎回 regions.yml をパースしている to [optimization] プロフィール編集画面で毎回 regions.yml をパースしている
Actions #3

Updated by Shogo Kawahara over 14 years ago

  • Status changed from Pending Review(レビュー待ち) to Rejected(差し戻し)

lib/util/opFormItemGenerator.class.php の

$list = (array)include(sfContext::getInstance()->getConfigCache()->checkConfig('config/regions.yml'));

では、 (array) キャストが必要ないかと思われます

Actions #4

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Rejected(差し戻し) to Pending Review(レビュー待ち)

更新履歴 d581ac9ee5722acd7d9945fc013706a794a01b98 で適用されました。

Actions #5

Updated by Shogo Kawahara over 14 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70
Actions #6

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 70 to 100
Actions

Also available in: Atom PDF