static public function registerMandrillAPI() { if (self::$MandrillLoaded) { #return; } //define('_MPDF_PATH',sfConfig::get('sf_lib_dir').'/vendor/mpdf/'); #set_include_path(sfConfig::get('sf_lib_dir').'/vendor/mpdf/'.PATH_SEPARATOR.get_include_path()); #define('_MPDF_PATH', sfConfig::get('sf_lib_dir').'/vendor/mpdf/'); //define("_MPDF_TEMP_PATH", sfConfig::get('sf_cache_dir').'mpdf_temp/'); //define("_MPDF_TTFONTDATAPATH", sfConfig::get('sf_cache_dir').'mpdf_font/'); define('MANDRILL_API_KEY', sfConfig::get("app_mandrill_api_key") ); require_once sfConfig::get('sf_lib_dir').'/vendor/mandrill/Mandrill.php'; #require_once sfConfig::get('sf_lib_dir').'/vendor/mpdf/mpdfi/mpdfi.php'; // Zend_Loader_Autoloader::getInstance(); self::$MandrillLoaded = true; }