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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Directory with custom scripts
Pages: [1]

Author Topic: Directory with custom scripts  (Read 1779 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Directory with custom scripts
April 09, 2009, 03:01:12 am
This might be a silly question....
Is there a constant or file or variable that holds the directory for my own custom scripts? I have entered the directory in Global Settings, and obviously I know the name. But I thought there should be a way to find out what it is from the settings.

Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Directory with custom scripts
April 09, 2009, 04:00:25 am
Erik,

By "directory with your own custom scripts", do you mean Custom PHP Path Directory from settings?  If so, it's available in $config->customPHPPathDir

If not, please elaborate. :-)

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Directory with custom scripts
April 09, 2009, 04:55:00 am
thnx, that is exactly what I am after!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Directory with custom scripts
April 15, 2009, 04:40:22 pm
What's the equivalent for custom templates?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Directory with custom scripts
April 15, 2009, 05:25:54 pm
It's $config->customTemplateDir

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Directory with custom scripts
April 15, 2009, 11:07:25 pm
Once I got the answer here I immediately did a print of the $config, full of useful things that help me to improve my scripts.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Directory with custom scripts
April 16, 2009, 06:33:21 am
Way to go, Erik. :-)

For others, this line:

Code: [Select]
CRM_Core_Error::debug( 'config', $config );
put somewhere in the code where config object is already initialised should help to see what's available in there.

Thx,
m
« Last Edit: April 16, 2009, 06:35:38 am by Michał Mach »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Directory with custom scripts

This forum was archived on 2017-11-26.