ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Adding constants

August 28, 2011 5:34am

Subscribe [2]
  • #1 / Aug 28, 2011 5:34am

    Lee Powell

    88 posts

    Hi

    I need to add a couple of constants for use throughout my current build - is it generally better practice to add these to the constants.php config file? or elsewhere?

    Thanks.

  • #2 / Aug 29, 2011 3:32am

    John Henry Donovan

    12339 posts

    Hi Lee,

    Are you developing an add-on?
    Is this just for general template use?

    If for use in your templates then I would recommend a Global Variable_. Would that be sufficient? If not can you give us some context to your need for a new Constant?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases