API:table prefix

From MODx Wiki

Jump to: navigation, search
API Quick reference
Variable name: table_prefix
Modx versions: > 9.5 Verified
Variable type: string
Object parent: DocumentParser


table_prefix

Description

Contains the database table prefix as defined during MODx installation (default "modx_").

Examples

<?php
echo ( $modx->db->config['table_prefix'] );
?>

Related

Notes

Personal tools