|
Quick & dirty list of handy functions, variables etc - only just started this Generating CiviURLS1) To create a CiviCRM URLCRM_Utils_System::url($path = null, $query = null, $absolute = false, $fragment = null, $htmlize = true, $frontend = false ) e.g. to generate the URL the user should be directed to after making a payment (e.g. at a bank's site). Note the $frontend variable determines whether Joomla users will return to a front-end (end user) page or not 2) To generate a full path URL in the civicrm code base:3) To generate a full path URL in the sites custom_php directory4) To generate a CiviCRM URL from a smarty templateYou can construct this URL within a .tpl file using the custom CiviCRM Smarty function crmURL as below where p='the bit before the question mark' (path) and q='the bit after the question mark' (query) and h='the link text' Debugging & troubleshootingRedirecting email output
Increasing what gets output to your CiviCRM logYou can edit your civicrm.settings.php to output more information about queries that run. Obviously there is a performance hit for these so use wisely Output all sql queries run by CiviCRM to a CiviCRM.*.log file in the files/civicrm/templates_c/en_US/ConfigAndLog/ directory Include a backtrace of the php functions that led to this query
CiviCRM debug functionsView a variable crm_core_error::debug( $params ); exit(); |
Civi-Cheat-Sheet
Labels
