|
há 14 anos atrás | |
---|---|---|
Admin | há 14 anos atrás | |
Builder | há 14 anos atrás | |
Command | há 14 anos atrás | |
Controller | há 14 anos atrás | |
Datagrid | há 14 anos atrás | |
DependencyInjection | há 14 anos atrás | |
Filter | há 14 anos atrás | |
Form | há 14 anos atrás | |
Model | há 14 anos atrás | |
Resources | há 14 anos atrás | |
Route | há 14 anos atrás | |
Security | há 14 anos atrás | |
Show | há 14 anos atrás | |
Tests | há 14 anos atrás | |
Twig | há 14 anos atrás | |
Util | há 14 anos atrás | |
Validator | há 14 anos atrás | |
.gitignore | há 14 anos atrás | |
CHANGES | há 14 anos atrás | |
CREDITS | há 14 anos atrás | |
LICENSE | há 14 anos atrás | |
README.md | há 14 anos atrás | |
SonataAdminBundle.php | há 14 anos atrás | |
phpunit.xml.dist | há 14 anos atrás |
There is online documentation here:
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.
Dashboard
List
Edit/Create
Templating
Others
There is online documentation here:
If you want to contribute to this documentation, you need to go to the Resources/doc
folder where
the reStructuredText documentation is available.
Please note the Github preview might break and hide some content.
Usage examples