Created
February 10, 2017 16:27
-
-
Save gelanivishal/47b4c6f2a49c97c597faac704c3c2760 to your computer and use it in GitHub Desktop.
Get table prefix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); | |
$deploymentConfig = $obj->get('Magento\Framework\App\DeploymentConfig'); | |
$tablePrefix = $deploymentConfig->get('db/table_prefix'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment