|
14 anos atrás | |
---|---|---|
Admin | 14 anos atrás | |
Builder | 14 anos atrás | |
Controller | 14 anos atrás | |
Datagrid | 14 anos atrás | |
DependencyInjection | 14 anos atrás | |
Filter | 14 anos atrás | |
Form | 14 anos atrás | |
Resources | 14 anos atrás | |
Route | 14 anos atrás | |
Tests | 14 anos atrás | |
Twig | 14 anos atrás | |
.gitignore | 14 anos atrás | |
CHANGES | 14 anos atrás | |
CREDITS | 14 anos atrás | |
LICENSE | 14 anos atrás | |
README.md | 14 anos atrás | |
SonataAdminBundle.php | 14 anos atrás | |
phpunit.xml.dist | 14 anos atrás |
WARNING : this is a prototype, and not a final/stable bundle.
Defining an Admin
class is pretty easy: simply define fields as properties
class PostAdmin extends Admin
{
protected $form = array(
'author' => array('edit' => 'list'),
'enabled' => array('form_field_options' => array('required' => false)),
'title',
'abstract',
'content',
'tags' => array('form_field_options' => array('expanded' => true)),
'commentsCloseAt',
'commentsEnabled' => array('form_field_options' => array('required' => false)),
);
protected $list = array(
'title' => array('identifier' => true),
'author',
'enabled',
'commentsEnabled',
);
protected $filter = array(
'title',
'author',
'enabled',
);
}
Screenshots : http://www.dropbox.com/gallery/581816/2/BaseApplicationBundle/preview?h=59b2e8
Of course, power users will be happy as an Admin
class is very flexible as all dependencies are
injected by the DIC.
You need to go to the Ressources/doc folder where the reStructuredText documentation is available. Please note the Github preview might break and hide some content.