在发布Symfony 4.0后,没有支持SensioGeneratorBundle
.因此该命令php app/console generate:doctrine:crud
不可用.
他们建议使用MakerBundle,但我无法找到CRUD生成的合适替代品.
有人可以帮忙吗?
我正在使用MapBoxgl,我想添加几个标记.
这是我的index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link href=" /assets/css/bootstrap.min.css " rel="stylesheet" />
<link href=" /assets/css/mapbox-gl.css " rel="stylesheet" />
<link href=" /assets/css/main.css " rel="stylesheet" />
</head>
<body>
<div id="map"></div>
<script src="/assets/js/mapbox-gl.js"></script>
<script src="/assets/js/map-style.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是map-style.js:
var map = new mapboxgl.Map({
container: 'map',
center: [57.3221, 33.5928],
zoom: 5,
style: style
});
var geojson = {
type: 'FeatureCollection',
features: [{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [30.61, 46.28]
},
properties: {
title: 'point 1',
description: 'point 1 Description', …
Run Code Online (Sandbox Code Playgroud) 我刚刚安装了Symfony演示,它的工作原理很吸引人。然后我想知道为什么在安装过程中毫无疑问?我发现它使用blog.sqlite
文件作为帖子。
我的问题是如何从迁移sqlite
到pdo_mysql
,什么是必要步骤?
谢谢。