Hello,
how can I get the database table prefix?
I dont find anything…
thank you in advance.
bye
Chris
Hello,
how can I get the database table prefix?
I dont find anything…
thank you in advance.
bye
Chris
Thank you very much.
I have to be more specific.
I need the prefix value in snippet.
There may be more elegant ways to do this but I think this should work:
<?php
include 'core/config/config.inc.php';
echo $table_prefix;
Someone more knowledgeable than me might be able to comment on the security of this method.
thank you.
ok, this is a solution.
I tried some, but I remember there should be indeed a more elegant way.
$modx->getOption('table_prefix');
yes, thats it.
thank you so much.