-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilisation de app.request.basepath pour trouver la racine du site Th…
…u Sep 27 06:34:45 GMT 2012
- Loading branch information
mparaiso
committed
Sep 27, 2012
1 parent
4f7ae8b
commit df70819
Showing
7 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
namespace App\Form{ | ||
|
||
use Symfony\Component\Form\FormBuilderInterface; | ||
|
||
class CaptchaType extends AbstractType | ||
{ | ||
|
||
public function buildForm(FormBuilderInterface $builder,array $options){ | ||
$builder->add(array("image","image")); | ||
} | ||
|
||
function getDefaultOptions(array $options){ | ||
return array(); | ||
} | ||
|
||
function getName(){ | ||
return "captcha"; | ||
} | ||
|
||
function getParent(array $options){ | ||
return "form"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
namespace App\Form{ | ||
|
||
use Symfony\Component\Form\AbstractType; | ||
use Symfony\Component\Form\FormBuilderInterface; | ||
use App\Form\DataTransformer\TagsToArrayTransformer; | ||
use App\Form\DataTransformer\MetadataTransformer; | ||
|
||
class ImageType extends AbstractType{ | ||
|
||
|
||
function buildForm(FormBuilderInterface $builder,array $options){ | ||
|
||
} | ||
|
||
function getDefaultOptions(array $options){ | ||
return array( | ||
"src"=>"/img/image.png", | ||
); | ||
} | ||
|
||
function getName(){ | ||
return "image"; | ||
} | ||
|
||
function getParent(){ | ||
return "field"; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<form action=""> | ||
<legend>Image</legend> | ||
<div> | ||
{{ form_label(form)}} | ||
{{ form_errors(form)}} | ||
{{ form_widget(form)}} | ||
{% block image_widget %} | ||
{% endblock image_widget %} | ||
</div> | ||
<input type="submit" value="submit"> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% block image_widget %} | ||
{% spaceless %} | ||
{{ block('widget_container_attributes')}} | ||
{{ block('field_widget')}} | ||
{% endspaceless %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.