|
@@ -115,7 +115,7 @@ class FormHelper extends Helper
|
|
|
public function row(/*FieldInterface*/ $field, $template = null)
|
|
|
{
|
|
|
if (null === $template) {
|
|
|
- $template = 'FrameworkBundle:Form:field_row.php.html';
|
|
|
+ $template = 'FrameworkBundle:Form:field_row.html.php';
|
|
|
}
|
|
|
|
|
|
return $this->engine->render($template, array(
|
|
@@ -126,7 +126,7 @@ class FormHelper extends Helper
|
|
|
public function label(/*FieldInterface */$field, $label = false, array $parameters = array(), $template = null)
|
|
|
{
|
|
|
if (null === $template) {
|
|
|
- $template = 'FrameworkBundle:Form:label.php.html';
|
|
|
+ $template = 'FrameworkBundle:Form:label.html.php';
|
|
|
}
|
|
|
|
|
|
return $this->engine->render($template, array(
|
|
@@ -139,7 +139,7 @@ class FormHelper extends Helper
|
|
|
public function errors(/*FieldInterface */$field, array $parameters = array(), $template = null)
|
|
|
{
|
|
|
if (null === $template) {
|
|
|
- $template = 'FrameworkBundle:Form:errors.php.html';
|
|
|
+ $template = 'FrameworkBundle:Form:errors.html.php';
|
|
|
}
|
|
|
|
|
|
return $this->engine->render($template, array(
|
|
@@ -151,7 +151,7 @@ class FormHelper extends Helper
|
|
|
public function hidden(/*FieldGroupInterface */$group, array $parameters = array(), $template = null)
|
|
|
{
|
|
|
if (null === $template) {
|
|
|
- $template = 'FrameworkBundle:Form:hidden.php.html';
|
|
|
+ $template = 'FrameworkBundle:Form:hidden.html.php';
|
|
|
}
|
|
|
|
|
|
return $this->engine->render($template, array(
|
|
@@ -178,7 +178,7 @@ class FormHelper extends Helper
|
|
|
|
|
|
$underscoredName = strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), strtr($className, '_', '.')));
|
|
|
|
|
|
- if ($this->engine->exists($guess = 'FrameworkBundle:Form:'.$underscoredName.'.php.html')) {
|
|
|
+ if ($this->engine->exists($guess = 'FrameworkBundle:Form:'.$underscoredName.'.html.php')) {
|
|
|
$template = $guess;
|
|
|
}
|
|
|
|
|
@@ -186,7 +186,7 @@ class FormHelper extends Helper
|
|
|
} while (null === $template && false !== $currentFqClassName);
|
|
|
|
|
|
if (null === $template && $field instanceof FieldGroupInterface) {
|
|
|
- $template = 'FrameworkBundle:Form:field_group.php.html';
|
|
|
+ $template = 'FrameworkBundle:Form:field_group.html.php';
|
|
|
}
|
|
|
|
|
|
self::$cache[$fqClassName] = $template;
|