|
14 년 전 | |
---|---|---|
Admin | 14 년 전 | |
Builder | 14 년 전 | |
Command | 14 년 전 | |
Controller | 14 년 전 | |
Datagrid | 14 년 전 | |
DependencyInjection | 14 년 전 | |
Filter | 14 년 전 | |
Form | 14 년 전 | |
Model | 14 년 전 | |
Resources | 14 년 전 | |
Route | 14 년 전 | |
Tests | 14 년 전 | |
Twig | 14 년 전 | |
.gitignore | 14 년 전 | |
CHANGES | 14 년 전 | |
CREDITS | 14 년 전 | |
LICENSE | 14 년 전 | |
README.md | 14 년 전 | |
SonataAdminBundle.php | 14 년 전 | |
phpunit.xml.dist | 14 년 전 |
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 Ressources/doc
folder where
the reStructuredText documentation is available.
Please note the Github preview might break and hide some content.
Usage examples