597 search results

135 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... lines 82 - 89
entities:
// ... lines 91 - 109
GenusNote:
// ... lines 111 - 112
list:
// ... line 114
fields:
- id
- username
- { property: 'userAvatarFilename', label: 'User avatar', type: 'image' }
- createdAt
- genus
// ... lines 121 - 135
See Code Block in Script
135 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... lines 82 - 89
entities:
// ... lines 91 - 109
GenusNote:
// ... lines 111 - 112
list:
// ... line 114
fields:
// ... lines 116 - 117
- { property: 'userAvatarFilename', label: 'User avatar', type: 'image', base_path: '/images/' }
// ... lines 119 - 135
See Code Block in Script
177 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { entity: 'User', label: 'Users' }
// ... lines 98 - 177
See Code Block in Script
177 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 99
- { entity: 'GenusNote', label: 'Notes' }
- { entity: 'SubFamily', label: 'Sub-Families' }
// ... lines 102 - 177
See Code Block in Script
177 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { entity: 'User', label: 'Users', icon: 'user' }
// ... lines 98 - 99
- { entity: 'GenusNote', label: 'Notes', icon: 'sticky-note' }
- { entity: 'SubFamily', label: 'Sub-Families', icon: '' }
// ... lines 102 - 177
See Code Block in Script
178 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { entity: 'User', label: 'Users', icon: 'user' }
- { label: 'Genus' }
// ... lines 99 - 178
See Code Block in Script
117 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... lines 82 - 91
entities:
// ... lines 93 - 117
See Code Block in Script
181 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { entity: 'User', label: 'Users', icon: 'user' }
-
label: 'Genus'
children:
- Genus
- GenusHorde
// ... line 103
- { entity: 'GenusNote', label: 'Notes', icon: 'sticky-note' }
- { entity: 'SubFamily', label: 'Sub-Families', icon: '' }
// ... lines 106 - 181
See Code Block in Script
181 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { entity: 'User', label: 'Users', icon: 'user' }
-
label: 'Genus'
children:
- Genus
- GenusHorde
- { label: 'Related' }
- { entity: 'GenusNote', label: 'Notes', icon: 'sticky-note' }
- { entity: 'SubFamily', label: 'Sub-Families', icon: '' }
// ... lines 106 - 181
See Code Block in Script
188 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 97
-
label: 'Genus'
children:
- Genus
-
entity: 'Genus'
label: 'Genuses (sorted by ID)'
params:
// ... lines 106 - 188
See Code Block in Script
188 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 97
-
label: 'Genus'
children:
- Genus
-
entity: 'Genus'
label: 'Genuses (sorted by ID)'
params:
sortField: 'id'
sortDirection: 'ASC'
pizza: 'delicious'
// ... lines 109 - 188
See Code Block in Script
195 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 97
-
label: 'Genus'
children:
-
entity: 'Genus'
label: 'Pet genus'
icon: 'paw'
params:
action: 'show'
id: 2
- Genus
// ... lines 109 - 195
See Code Block in Script
196 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... line 96
- { label: 'Open front-end', route: 'app_genus_list' }
// ... lines 98 - 196
See Code Block in Script
208 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 120
-
label: 'Important stuff'
icon: 'exclamation'
children:
// ... lines 125 - 208
See Code Block in Script
208 lines | app/config/config.yml
// ... lines 1 - 80
easy_admin:
// ... line 82
design:
// ... lines 84 - 94
menu:
// ... lines 96 - 120
-
label: 'Important stuff'
icon: 'exclamation'
children:
-
label: 'Silly kittens'
url: 'https://www.youtube.com/results?search_query=silly+kittens'
target: '_blank'
-
label: 'Wet cats'
url: 'http://www.boredpanda.com/funny-wet-cats/'
target: '_blank'
// ... lines 133 - 208
See Code Block in Script
GG EasyAdmin has come a long way (glad to see the yaml config gone)
{% extends '@EasyAdmin/page/content.html.twig' %}
{% block page_title %}
Cauldron Overflow Dashboard
{% endblock %}
{% block main %}
<div class="row">
<div class="col-6">
<h3>Latest Questions</h3>
<ol>
{% for question in latestQuestions %}
<li>
<a href="{{ path('app_question_show', {'slug': question.slug}) }}">{{ question.name }}</a>
<br>- {{ question.createdAt|date }}
</li>
{% endfor %}
</ol>
</div>
<div class="col-6">
<h3>Top Voted</h3>
<ol>
{% for question in topVoted %}
<li>
<a href="{{ path('app_question_show', {'slug': question.slug}) }}">{{ question.name }}</a> ({{ question.votes }})
</li>
{% endfor %}
</ol>
</div>
</div>
{% endblock %}
See Code Block in Script
Is EasyAdmin compatible with Symfony 5.1.3? I am working now on a project in symfony 5 and I need to decide what to use for the admin part. Seems like sonata is not compatible with symfony, how about easyadmin? Thank you
Alexandru
Alexandru
Read Full Comment
Does EasyAdmin support entity classes with constructor arguments for properties that are meant to be not nullable? EasyAdmin instantiates the entity class even if you click the "Add " button, right? Unfortunatelly this results in an "Too few arguments to function __construct()" error. Do you have…
Roland W.
Roland W.
Read Full Comment
Hi - thx for the EasyAdmin tutorials - they're super helpful! I had a question/clarification on the `orphanRemoval` piece - per the Answer class, the question id cannot be null (which is why you saw that error when you tried to remove the Answer, failing on…