-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help. I can not make it work. Not appear the button to add image. #76
Comments
Hi @yumoraes |
@comur your solution looks great, but I struggle to install it in Sonata. I pasted to standard_layout.html.twig in sonata-project/admin-bundle resources folder. I would appreciate your help. |
Try to perform a "php app/console assets:install --symlink" and it should work |
@paulmonty is it ok with @juanwilde 's solution ? can we close this issue ? |
Too old. I close. Feel free to open new issue if you have any problem |
My code:
Controler:
` /**
* @route("/pacote/novoPacote", name="friendstrip.app.pacotes.novoPacote")
* @template("FriendstripAppBundle:Pacotes:novoPacote.html.twig");
*/
public function novoPacoteAction(Request $request)
{
$pacote = new AppBundle\Entity\Pacote();
// 'showLibrary' => true, //optional
// 'saveOriginal' => 'originalImage', //optional
'generateFilename' => true //optional
),
'cropConfig' => array(
'minWidth' => 588,
'minHeight' => 300,
'aspectRatio' => true, //optional
'cropRoute' => 'comur_api_crop', //optional
'forceResize' => false, //optional
'thumbs' => array( //optional
array(
'maxWidth' => 180,
'maxHeight' => 400,
'useAsFieldImage' => true //optional
)
)
)
))
->getForm();
twig view:
`
{{ form_widget(form) }}
show:
The text was updated successfully, but these errors were encountered: