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


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?

I have written a module to add my own events, and in the home page
i would like to show only latest events. So in that case i have to add
order by to query but i couldnot do that, it always throws fatal
error.


This is what i have done.


$_offers =
Mage::getSingleton('offerings/offerings')->getCollection(); />

This returns all the records, here i could able to
set filter options but i could not add sort order like this

/>$_offers =
Mage::getModel('offerings/offerings')->getCollection()

->addAttributeToSort('offerings_id', 'DESC')

->setPageSize(5)
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!

Programming Languages

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?


Web Design

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?

Programming Languages

I have followed a wiki post to setup a custom module with a custom
database table.

/>

http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table

/>

One thing that I can't work out is how to display a list of
database entries in the admin backend. Any ideas about what I'm
missing would be greatly appreciated?

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?

Databases

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow