基础篇24. 自定义区块,include模板

龵龲龮龬龩龥龢龟龛龚龘龖龕龔龒龑龎龋龊龆龬龃龵龁齾齾龮龩齽齼齻龃齹龮龃齵齳齯齬龔齫齨龃齦齣齡齠齞齛龎

齗龟龛齕齓齒龩齑page齅齂龎齬齁齦齣鼽鼻龃鼹鼷鼵龔鼲鼰龃龟龛鼬鼨鼦鼢龵鼟鼛鼘鼗鼓鼏鼍鼊龋齅齂鼛鼆龢龃鼂龚龵齫龲黾黼黹鼻drupal齓黬黩龵鼟鼛鼘龎

黨黥龃龟龛齓黡黝龩齽黛黙黗黔黓龃鼢齅齂龢龔黑黏黋鼛鼘黇黃黔黓龢龃鼬龋齅齂龢麿麾麺麸龔黑黏龎龵齫龃麷麶龟龛麳麲麰麭龵麪鼛鼘龃龲鼨麳麲龋齅齂龢麰麭齛龎

龋龵麧龃龟龛黡黝齛龩齽麥麣鼷麡麟麛龔黛黙黗黔黓龃麚麗龟龛鼢龑齁麣鼷龔龵龩麺p麕麓黥麐麍龢龔鼗鼓拷麈黃黔黓龔麇鼛龢龎麄麂齯麗龃龋黔黓鹾鹼龑齁龢鹻黃麥footer麛黔鹶龃麚麗鹲鹮麥黇鹭黔黓麛鹫鹩龃鼬龋鹥鹤齓龔鹣鹢龢鹠鹞龟龛鹛鹘黡黝龔黔黓龃齕鹖鹲鹮麥黇鹭黔黓麛鹫鹩龎龋鼍齑齓龔鹣鹢龢龃鼢鹔鹓麕鹒齬齁龔鹎鹋鹊龃鼂龚龟龛鼨麳麲鹔鹓麕鹒龃麚麗麄麂龎

麚麗龟龛鹇黃齯齬龔鹆齽齅齂鼛鼆龢龃鼢齵麸龔p麕麓黋鹂龔鼗鼓麿麾鹀龎鹇黃龒龑龃鸿鸽齯麗龃龟龛鸺黥齒黃鸹齽p麕麓鸵鸲鸱鸯鹤齓齛龎龟龛齕鹖鹇黃麥黛黙黗黔黓麛鸮鸬龃鸨鸤龵齽黔黓龃龵麧龔鼛鸢鸟鸞龮basic html龃鹂鼦黛鸐鼻鸎鹀龩鼟鸊鸇龃齳麷class鸄鸂龃黨黥龵麧龟龛鹠鹞full html龃麚麗鹲鹮鷾黑黏龃鼢齯齬龔鷻鷹黥鷾黑黏龔鷸鸞鷶鷳龬齓龃麚麗齕鹖麄麂龎

龟龛鷰鷯鷬鷨鸺黥齒黃龃齯齬龋齅齂龢龔p麕麓鷥鸄鸂黋鼛鼘鼗鼓鸵麇鷢鷞鹤齛龎龋鹆齽page齅齂龢龃龑齁麣鼷龔footer黔鹶鸵鷜鷘齛齵鷕龔黑黏龎麍鷑龟龛鸺黥鷏鷋龚footer黔鹶黡黝龩齽footer.html.twig龔齅齂龃麚麗龋鹆齽page齅齂龢黹鼻鼛鷆龢龔鷃鷂齓鷀鷘龵齽footer齅齂龎龋龵齽黑黏龢龃鶿鶼齬齁龔龮鶸鹒鸂鶶龃麗齁龮麲鷀鶴龔齅齂鸂龎

{% include '@nowicode/footer.html.twig' %}

龵齫龃麷麶龟龛麳麲麰麭footer龔黑黏鼲龃龟龛龲鼨麳麲鶣麰麭鶢龩齽齅齂龃龟龛鶟麲鼏鼍麰麭footer齅齂鶜鸺龎

鶙鶖龬齁龵齽鷻鷹龔鶒鶏鶋鶊鶇鶃鶁鵽鵹黡黝龩齽鶸鹒龔鼲鼰龃Drupal8鼦黛鸐鵵鵴龩齽Twig鷃鸂鵬鵫龃鵪鵨鵧龔龮鶸鹒龔template鼛鼆鵣龎鼂鵢龃龋Twig include龢龔"@theme_name"鵨龔龲龮龵齽鷃鸂鵬鵫龃鶜"your_site.com/themes/theme_name/templates/"

麚麗龟龛鹇黃footer齅齂龢龃鵙鵘鵔鵑龩齽鸄鸂龃鸿鸽龑齁齯麗龃龟龛鸺黥齒黃龵齽鸄鸂鸲鷞鹤黃鷾黑黏龢龃龵鵎鵋龃龟龛龔齅齂鵊鵈齛龎龵麧龃鵇龩齽鵃龥龃鴿龲龮龃twig debug齅鸞鼨鼦龚鴾include龔鷸鸞鷀鶴龔齅齂鵊鴼鴸鴴鴳鴱龎

本书共56小节:

评论 (写第一个评论)