Date index for Feb 2004
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FW: Adding a global configuration variable
- To: "Achievo (E-mail)" <Date: Fri, 27 Feb 2004 12:16:52 -0500
- Delivered-to: mailing list achievo dot
- Mailing-list: contact achievo-help dot
- Thread-index: AcPmgGnYEALZgFJTT8O0c01cB9P0qQW1Qdpw
- Thread-topic: Adding a global configuration variable
Hello All,
I did some modifications to the weektimeregistration module wich I will submit to Ivo for "approval". But I need to know one thing before doing so... I would like to know how to add a global configuration variable to the config.inc.php in order to use the atkconfig() function...
this is what I've done and doesn't work:
//In config.inc.php
// for the weekregistration module
// Enable the feature to hide activities
// that require a remark
$m_hide_fields_with_remarkrequired = true;
// In the module's class
//in the class, before the constructor
var $m_hide_fields_with_remarkrequired; //declaration
//in the constructor
$this->m_hide_fields_with_remarkrequired=atkconfig("hide_fields_with_remarkrequired");
That doesn't work... So I just did:
//in the constructor
$this->m_hide_fields_with_remarkrequired= true;
until I receive a answer...
--
Stéfan Leblanc
Support Environnement Linux/Conception Outils
Radical Horizon
1751 Richardson Street, Suite 8153
Montreal, Quebec, Canada H3K 1G6
Tel: 514.937.1757 x286
Fax: 514.937.1548
Email: sleblanc dot
Web: www.radicalhorizon.com