/** * テキストエリアを表示する * * @param string フィールド文字列 * @param array html属性 * @return string htmlタグ * @access public */ public function textarea($fieldName, $attributes = array()) { if ($this->freezed) { list($model, $field) = explode('.', $fieldName); $attributes = $attributes + array('type' => 'hidden'); if (isset($attributes["value"])) { $value = $attributes["value"]; } else { $value = $this->request->data[$model][$field]; } if ($value) { return parent::text($fieldName, $attributes) . nl2br($value); } else { return " "; } } else { return parent::textarea($fieldName, $attributes); } }