Help us understand the problem. What is going on with this article?

EC-CUBE3のメモ - 画面を作ってみる -

More than 3 years have passed since last update.

EC-CUBE 3 リファクタガイドラインにそって、管理画面>ポイント管理を作ってみるまでのメモ。

環境設定

  • 利用ツール
    • Xampp
      • PHP5.4
      • MySQL
    • NetBeans

Xamppでも一応できる
insaller.shが動かせないので、いろいろ頑張る(あとでかく:構築手順)

ポイント管理

ぷるりく

https://github.com/EC-CUBE/ec-cube/pull/72/files

修正ファイル一覧(不要なのはのぞく、以下5ファイル修正必要)

src/Eccube/Controller/Admin/Basis/PointController.php
src/Eccube/ControllerProvider/AdminControllerProvider.php
src/Eccube/Form/Type/PointType.php
src/Eccube/View/Admin/Basis/point.twig
src/Eccube/ServiceProvider/EccubeServiceProvider.php

完成までの流れ

以下の順番でやるとイメージつきやすい

いったんここで画面表示して表示されるまで修正

FormTypeに定義するバリデータなどはSymphonyのドキュメントを参照しながら置き換えていく

http://docs.symfony.gr.jp/symfony2/reference/forms/types.html
http://docs.symfony.gr.jp/symfony2/reference/constraints.html

submit時にFormValidatorでNoticeがでたら、、、

Notice: Trying to get property of non-object in /var/www/Myblog/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php line 84

submitした時に、上記のようなNoticeがでるときがある

カッコの位置が間違ってるのでなおす
http://stackoverflow.com/questions/19299898/symfony2-form-trying-to-get-property-of-non-object-in

つづき

ユニットテストに続く

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away