我需要在Symfony的.env
文件中使用嵌套变量。我尝试过:
# .env
DIRECTORY=my_bucket
PREFIX_URI='cdn.example.com/%env(DIRECTORY)%'
然后我需要在PREFIX_URI
的{{1}}配置文件中使用.yaml
:
config/packages
但是,这似乎不起作用。变量将被忽略。我该怎么办?
答案 0 :(得分:1)
您的.up:hover {
cursor:pointer;
}
.tooltip2 {
position: relative;
display: inline-block;
border-bottom: 3px dotted black; /* If you want dots under the hoverable text */
text-decoration: none;
color: #00F;
}
img.cadre {
border: 3px solid #D2D1D1;
border-radius: 4px;
width: 125px;
height: 125px;
}
.tooltip2 .tooltiptext2 {
visibility: hidden;
width: 130px;
background-color: #fff;
color: #fff;
text-align: center;
padding: 5px 5px;
border-radius: 6px;
margin-left: 7px;
position: absolute;
z-index: 0;
}
.tooltip2:hover .tooltiptext2 {
visibility: visible;
cursor:pointer;
}
.tooltip2 .tooltiptext2 {
top: -5px;
left: 105%;
}
/* Left Arrow */
.tooltip2 .tooltiptext2::after {
content: " ";
position: absolute;
top: 15px;
right: 100%; /* To the left of the tooltip */
margin-top: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent white transparent transparent;
}
table.blue.fixed {
z-index: 99;
}
文件未使用PHP。引用另一个变量的正确方法是这样的:
.env