If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Contribution-Writing Guidelines / extra_datafiles VS extra_definitions

extra_datafiles VS extra_definitions

Locked

Started by yellow1912 on 16 Aug 2007, 9:36 PM · Views: 2,788

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Aug 2007, 9:36 PM
#1
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Post #1 by yellow1912

I'm kinda confused here: what are the purposes of the files in admin/includes/extra_datafiles and admin/includes/languages/english/extra_definition ?

Say I want to pre-define some global variables to be used in admin/functions/extra_functions, where should I place the def?

Regards,
yellow1912

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

16 Aug 2007, 10:13 PM
#2
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Post #2 by econcepts

The "extra_datafiles" refers to the Tables, Files, Drop Down box terminology, etc... (the data) to which a piece of code references.
**
An examples of such would be:**

define('FILENAME_YOUR_NEWPROGRAM', 'your_new_filename.php');
define('BOX_TOOLS_YOUR_NEWPROGRAM', 'This is what appears in the Drop down box in the Admin navigation');

The "extra_definitions" typically refers to the "defines" for CONSTANTS in programs. These usually represent Text attributes that associate with the front end of a program.

Examples of such would be:

define('HEADING_YOUR_NEWPROGRAM', 'My New program Heading');
define('TEXT_NEWPROGRAM', 'Include some instructions etc.. here if you desire');

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

17 Aug 2007, 2:19 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Eric is right.

To clarify ... the extra_definitions folder deals with language content ... and since you can have more than one language, allows you to define visual messages at the per-language level.

The extra_datafiles folder would be for things that are not language-dependent.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.