我已经开始使用Symfony2,但我遇到了一些问题.我想手工渲染字段,但它不起作用,因为我渲染的字段也显示了form_rest()函数,所以我有两个相同的字段.
这是我的代码:
<div>
{{ form_errors(form.contenu) }}
<textarea id="{{ form.contenu.vars.id }}" name="{{ form.contenu.vars.full_name }}">{{ form.contenu.vars.value }}</textarea>
</div>
Run Code Online (Sandbox Code Playgroud)
而且,在表格的最后,我必须把它:
{{ form_rest(form) }}
Run Code Online (Sandbox Code Playgroud)
但它显示"contenu"字段:(
你知道问题是什么吗?
我想在某个路径内进行集合组查询,这意味着我不仅希望使用 collectionId 来定位集合,还希望使用集合所在的位置来定位集合。
让我们使用文档中使用的示例来更好地解释它。我们将在城市中拥有地标,并在自己的收藏中拥有“一般”地标:
let citiesRef = db.collection('cities');
let landmarks = Promise.all([
citiesRef.doc('SF').collection('landmarks').doc().set({
name: 'Golden Gate Bridge',
type: 'bridge'
}),
citiesRef.doc('SF').collection('landmarks').doc().set({
name: 'Legion of Honor',
type: 'museum'
}),
citiesRef.doc('LA').collection('landmarks').doc().set({
name: 'Griffith Park',
type: 'park'
}),
citiesRef.doc('LA').collection('landmarks').doc().set({
name: 'The Getty',
type: 'museum'
}),
citiesRef.doc('DC').collection('landmarks').doc().set({
name: 'Lincoln Memorial',
type: 'memorial'
})
]);
let generalLandmarks = Promise.all([
db.collection('landmarks').doc().set({
name: 'National Air and Space Museum',
type: 'museum'
}),
db.collection('landmarks').doc().set({
name: 'Ueno Park',
type: 'park'
}),
db.collection('landmarks').doc().set({
name: 'National Museum of Nature and Science',
type: …Run Code Online (Sandbox Code Playgroud)