Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default extra_datafiles VS extra_definitions

    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

  2. #2
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: extra_datafiles VS extra_definitions

    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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: extra_datafiles VS extra_definitions

    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.

 

 

Similar Threads

  1. includes/extra_datafiles ignore me
    By kurtrr in forum Code Collaboration
    Replies: 2
    Last Post: 30 Jun 2014, 10:19 PM
  2. Override: extra_datafiles & extra_configures
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2010, 04:53 AM
  3. Using extra_definitions
    By nmuta in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Apr 2010, 02:22 AM
  4. extra_datafiles
    By Creaware in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 3 Jul 2006, 04:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR