Hello,
I'm trying to make an extension for Arastta but a really want to no what the standard prefix is for the database tables of Arastta.
So that i can chance the SQL file that it is forevery one the same.
Regards Martin
I'm trying to make an extension for Arastta but a really want to no what the standard prefix is for the database tables of Arastta.
So that i can chance the SQL file that it is forevery one the same.
Regards Martin
In Extensions
Share this post:
Responses (2)
-
Accepted Answer
Hi 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:-
https://arastta.org/docs/developers/quick-start
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:-
M
/catalog/model/catalog/category.php
V
/catalog/view/theme/default/template/product/category.tpl or /catalog/view/theme/second/template/product/category.tpl
C
/catalog/controller/product/category.php
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?
Regards,
Hackasacka -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »