浏览代码

set context as default valueSource even before constructor or create() are being run

Jonas Hartmann 9 年之前
父节点
当前提交
6bcd8a16d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/View/Helper/FormHelper.php

+ 1 - 1
src/View/Helper/FormHelper.php

@@ -210,7 +210,7 @@ class FormHelper extends Helper
      *
      * @var array
      */
-    protected $_valuesSources = [];
+    protected $_valuesSources = ['context'];
 
     /**
      * Construct the widgets and binds the default context providers