CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Easier configuration
Pages: [1]

Author Topic: Easier configuration  (Read 1322 times)

guaka

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
    • my blog
Easier configuration
February 10, 2010, 04:59:34 pm
Because I'm constantly bitten by this myself I'm playing with some ways to make it easier to configure CiviCRM - at least for those running on top of Drupal.

Here's a start:

$civicrm_root = getcwd() . '/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/' . getcwd() . '/sites/default/files/civicrm/templates_c/' );
define( 'CIVICRM_UF_BASEURL'      , 'http://' . $_SERVER["HTTP_HOST"] . base_path());

Next thing is to also acquire the /sites/all/modules/civicrm/ and /sites/default/files/ part through the Drupal API.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Easier configuration

This forum was archived on 2017-11-26.