sonata_formatter_typeのサンプル

サンプルコード:

->add('body’, 'sonata_formatter_type’, array(
'source_field’         => 'body’,
'source_field_options’ => array('attr’ => array('class’ => 'span10’, 'rows’ => 80)),
'format_field’         => 'bodyFormatter’,
'target_field’         => 'body’,
'ckeditor_context’     => 'default’,
'event_dispatcher’     => $formMapper->getFormBuilder()->getEventDispatcher()
));

Development

Posted by arkgame