table_prefix

Last edited by JP DeVries on Aug 9, 2013.

API:table prefix

API Quick reference
Variable name: table_prefix
Modx versions: > 9.5 Verified + Evolution
Variable type: string
Object parent: DocumentParser

Description

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

Usage / Examples

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

Notes

Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).