|
%!s(int64=14) %!d(string=hai) anos | |
---|---|---|
Admin | %!s(int64=14) %!d(string=hai) anos | |
Builder | %!s(int64=14) %!d(string=hai) anos | |
Command | %!s(int64=14) %!d(string=hai) anos | |
Controller | %!s(int64=14) %!d(string=hai) anos | |
Datagrid | %!s(int64=14) %!d(string=hai) anos | |
DependencyInjection | %!s(int64=14) %!d(string=hai) anos | |
Filter | %!s(int64=14) %!d(string=hai) anos | |
Form | %!s(int64=14) %!d(string=hai) anos | |
Model | %!s(int64=14) %!d(string=hai) anos | |
Resources | %!s(int64=14) %!d(string=hai) anos | |
Route | %!s(int64=14) %!d(string=hai) anos | |
Security | %!s(int64=14) %!d(string=hai) anos | |
Show | %!s(int64=14) %!d(string=hai) anos | |
Tests | %!s(int64=14) %!d(string=hai) anos | |
Twig | %!s(int64=14) %!d(string=hai) anos | |
Util | %!s(int64=14) %!d(string=hai) anos | |
Validator | %!s(int64=14) %!d(string=hai) anos | |
.gitignore | %!s(int64=14) %!d(string=hai) anos | |
CHANGES | %!s(int64=14) %!d(string=hai) anos | |
CREDITS | %!s(int64=14) %!d(string=hai) anos | |
LICENSE | %!s(int64=14) %!d(string=hai) anos | |
README.md | %!s(int64=14) %!d(string=hai) anos | |
SonataAdminBundle.php | %!s(int64=14) %!d(string=hai) anos | |
phpunit.xml.dist | %!s(int64=14) %!d(string=hai) anos |
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