[limb-issues] Created: (WAP-2) Default values for *INCLUDE_PATH* constants

Pavel Shevaev (JIRA) jira at limb-project.com
Fri Oct 20 13:17:44 MSD 2006


Default values for *INCLUDE_PATH* constants
-------------------------------------------

                 Key: WAP-2
                 URL: http://jira.limb-project.com/browse/WAP-2
             Project: WEB_APP
          Issue Type: Improvement
            Reporter: Pavel Shevaev


Initialization procedure of projects using web_app package should be as simple as possible, *INCLUDE_PATH* constants should have default meaningful values which would allow to omit their declaration in many cases.

Since these constants are include_path based i think it makes sense to define them by default just like this:

@define('LIMB_CONTROLLERS_INCLUDE_PATH', 'src/controller;limb/*/src/controller');
@define('LIMB_INI_INCLUDE_PATH', 'settings');
@define('LIMB_CONF_INCLUDE_PATH', 'settings');
@define('LIMB_TEMPLATES_INCLUDE_PATH', 'template;limb/*/template');
@define('LIMB_WACT_TAGS_INCLUDE_PATH', 'limb/*/src/template/tags;limb/wact/src/tags');

We're assuming here that app project's dir is included into include_path and has higher priority.

The good place for this initialization is web_app/common.inc.php IMO

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the limb-issues mailing list