For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?


Gianluca Riccardi
HOME ยป Databases

I searched for an image's file name in my mysql database for Magento, and I couldn't find it. Also the images are stored inside alphabetical folders as well as a cache folder.


Should I do the same for my Magento module? Is there any existing code in the Magento core that I should re-use?


If not, I'll stick to storing the image's file name in the database, and all uploads going in one folder without subfolders.


Now that I think about it, it's time for question number 2. Where should modules upload images to?


Related to : For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?
For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?
Databases

I searched for an image's file name in my mysql database for Magento, and I couldn't find it. Also the images are stored inside alphabetical folders as well as a cache folder.


Should I do the same for my Magento module? Is there any existing code in the Magento core that I should re-use?


If not, I'll stick to storing the image's file name in the database, and all uploads going in one folder without subfolders.


Now that I think about it, it's time for question number 2. Where should modules upload images to?


Magento custom module - where to store includes
Databases

I am creating a custom magento module and cant decide the best place to store some config files i require with the module?


Anyone out there suggest the best place for this? Should it be in the root of the module or in with the helpers maybe?


Edit:
Along the same lines as this question: is it acceptable to have a folder in the root of the namespace for the modules for includes that will be shared amongst the modules?


Magento custom module licensing - Magento Connect
Databases

I have created a custom payment gateway module which allows to integrate a particular bank's payment gateway into a person's Magento site. Now what I want to do is to upload this module as a commercial module so that other people can pay,download and can use it in their sites.


My problem is which licensing method should I use from below? Are there any coding standards to be followed to it be a commercial module? Are there any other procedures to be taken? How should I proceed?



Magento Custom Module How to store variable in config.xml
Databases

I have a custom module that is working just fine but I would like to be able to store variables in the config so I can use them in my code. (For example a default error message)


I think I can access them by using Mage::getStoreConfig('/some/path/here'); but I don't know how to add them to the modules config.xml (myname/mymodule/etc/config.xml) so that I can use them in my code?


Anyone have a clue?
Thanks!




HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .