Joomla database for extension

จาก Wiki2

ข้ามไปที่: นำทาง, สืบค้น
  • Joomla มี Table ราว 30 กว่า Table ดูได้โดย PHPmyAdmin
  • ใช้ jos_ เป็น Table Prefix เพื่อทำให้ Install Joomla หลายๆชุดใน Database เดียวกันได้ โดยแทน Table Prefix ด้วย Symbolic prefix = #__ เช่น #__myExtension_items
    • The symbolic prefix guarantees that we use the correct prefix for the current

Joomla! installation

  • หากต้องการสร้าง Table สำหรับ Extension ที่จะสร้างให้ใช้ชือ Extension เป็นชื่อ Table ตามด้วยสิ่งที่จะเก็บซี่งต้องทำเป็นพหูพจน์ และเป็นตัวเล็กหมดดังตัวอย่าง #__myExtension_items
    • Field Name ใช้ตัวเล็กหมดแยกด้วย _ และตั้ง Primary key record ID ว่า id เป็น Integer auto_increment, no null
    • All dates and times should be recorded in UTC+0 (GMT / Z).
เครื่องมือส่วนตัว