|
před 14 roky | |
---|---|---|
Admin | před 14 roky | |
Builder | před 14 roky | |
Command | před 14 roky | |
Controller | před 14 roky | |
Datagrid | před 14 roky | |
DependencyInjection | před 14 roky | |
Filter | před 14 roky | |
Form | před 14 roky | |
Model | před 14 roky | |
Resources | před 14 roky | |
Route | před 14 roky | |
Tests | před 14 roky | |
Twig | před 14 roky | |
.gitignore | před 14 roky | |
CHANGES | před 14 roky | |
CREDITS | před 14 roky | |
LICENSE | před 14 roky | |
README.md | před 14 roky | |
SonataAdminBundle.php | před 14 roky | |
phpunit.xml.dist | před 14 roky |
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