คู่มือการใช้งาน: CommonSettings.php

From mediawiki.org
This page is a translated version of the page Manual:CommonSettings.php and the translation is 50% complete.
Outdated translations are marked like this.

ฟาร์ม Wiki ใช้ไฟล์ CommonSettings.php เพื่อให้มีการตั้งค่าที่ใช้ร่วมกับ Wikis ทั้งหมดที่จัดการโดยฟาร์มนั้น เนื่องจากไฟล์กำหนดค่าเป็นไฟล์ php โดยพลการคุณสามารถแบ่งไฟล์กำหนดค่าของคุณออกเป็นไฟล์กำหนดค่าแยกต่างหากได้มากเท่าที่คุณต้องการและอาจนำบางส่วนมาใช้ซ้ำในหลายวิกิ มูลนิธิวิกิมีเดียใช้ไฟล์ชื่อ $filename สำหรับการตั้งค่าที่ใช้ร่วมกับวิกิทั้งหมด Since config files are arbitrary php files, you can split up your config files into as many separate config files as you want, and potentially reuse portions among multiple wikis. The Wikimedia Foundation uses a file called CommonSettings.php for settings that are common to all of its wikis.

การตั้งค่าที่เป็นไปได้

  1. Create ไฟล์ CommonSettings.php พร้อมการตั้งค่าทั่วไปที่เกี่ยวข้องทั้งหมด
  1. In ทั้งหมด ของ LocalSettings.php ที่ได้รับผลกระทบให้เพิ่ม:
require_once("<path to your CommonSettings.php>/CommonSettings.php");

$wgconf อาจพิสูจน์ว่ามีประโยชน์ในไฟล์การกำหนดค่าดังกล่าว

ดูเพิ่มเติม

ลิงค์ภายนอก