Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#886 closed New feature (fixed)

Load bootstrap.php if it exists

Reported by: vipsoft Owned by: vipsoft
Priority: low Milestone: Piwik 0.6.1
Component: Core Keywords:
Cc: Sensitive:

Description (last modified by vipsoft)

index.php and piwik.php would load piwik/bootstrap.php, if it exists, to allow for local configuration tweaks; bootstrap.php would not exist in SVN

Tweakable:

  • PIWIK_INCLUDE_PATH (see #656)
  • PIWIK_ENABLE_SESSION_START (see #885)

Introduce:

  • PIWIK_DOCUMENT_ROOT (also #656)

Attachments (1)

bootstrap.php (534 bytes) - added by vipsoft 5 years ago.
Sample bootstrap

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by matt (mattab)

We cannot use the plugin framework to fire an event as early as the index.php or piwik.php therefore I agree such a mechanism would be useful to have.

What sort of tweaks/use cases were you thinking of?

Changed 5 years ago by vipsoft (robocoder)

Sample bootstrap

comment:2 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)

comment:3 Changed 5 years ago by vipsoft (robocoder)

(In [1341]) refs #886, #656, #8585 - add PIWIK_DOCUMENT_ROOT and optional inclusion of bootstrap.php

comment:4 Changed 5 years ago by vipsoft (robocoder)

Sorry, last refs should be #885.

comment:5 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 5 years ago by vipsoft (robocoder)

(In [1343]) refs #886 - redo and extend change to visit generator and tests config

comment:7 Changed 5 years ago by koteiko

Note: See TracTickets for help on using tickets.