Share this post:
Accepted AnswerHackasackaOfflineHi Martin,
Perhaps you could read the contents of the "config.php" in the root using PHP and search for the "define('DB_PREFIX', 'arxy_');"?
However, if you look at the documentation for developers you could use the Arastta API used within the MVC structure:-
Maybe, have a look at a simple example of an existing module i.e. "category" or "product" as they are the most commonly used and if you exclude the ""Dashboard" and the "Admin" interface, you only need look at at the "catalog" folder and the files in the MVC subfolders i.e. for the "catalog" module:-
/catalog/view/theme/default/template/product/category.tpl or /catalog/view/theme/second/template/product/category.tpl
There may not be a need to read the database prefix as the data is available in the API.
It would be helpful to know more about the nature of the "module" you are developing?
Accepted AnswerRune RasmussenOffline