registry->ab->info($content,$label); // $this->registry->ab->log($content,$label); // $this->registry->ab->warning($content,$label); // $this->registry->ab->error($content,$label); // $this->registry->ab->dump($content,$label); // $this->registry->ab->table($content,$label); // $this->registry->ab->trace($label); // jika pada saat production atau siap di upload ke server, pastikan // firephp di hapus pada composer.json dan set environment ke production $config['environment'] = "prod"; $config['env'] = "developer"; // aktif log aplikasi dengan mengisi log 1 atau 0 untuk tidak aktif $config['log'] = "1"; // berikan nilai off jika output buffering off di php ini dan berikan on jika output buffering on di php.ini $config['ouput_buffering'] = "off"; //cara penggunaan firePHP //1. pastikan dulu firebug nya sudah ada firephp //dibawah beberapa contoh penggunaan firePHP //$this->registry->fp->log($this->registry,'var_name'); //$this->registry->fp->info('test info','Info Message'); //$this->registry->fp->warn('test warn','Warn Message'); //$this->registry->fp->error('test error','Error Message'); //ini untuk fb (procedure API for firePHP) //contoh //fb::info($this->registry) //set json path true or false, tru jika pada php versi belum support json, tetapi jika sudah support //jsonpath tidak perlu diaktifkan $config['jsonpath'] = false; // $json = '{ ... }'; // $o = json_decode($json); // $match1 = jsonPath($o, "$..author"); // $match2 = jsonPath($o, "$..author", array("resultType" => "PATH")); // $res1 = $parser->encode($match1); // $res2 = $parser->encode($match2); // output // res1: // [ "Nigel Rees", // "Evelyn Waugh", // "Herman Melville", // "J. R. R. Tolkien" // ] //res2: //[ "$['store']['book'][0]['author']", // "$['store']['book'][1]['author']", // "$['store']['book'][2]['author']", // "$['store']['book'][3]['author']" // daftarkan semua class - class name yang tidak perlu di load dengan menggunakan auto load // contoh class - class yang di load untuk plugin $config['listclassnotautoload'] = array("PEAR_Error"); $config['smtp']="sandbox.smtp.mailtrap.io"; $config['smtp_debug']=0; $config['smtp_debugtest']=false; $config['smtp_auth']=true; $config['port']=2525; $config['ssl']=''; $config['mail_user']="6ea1196a0ae032"; $config['mail_password']="54dff4e103e4d9"; $config['edot_api_url'] = 'https://api-accounts.edot.id/'; $config['edot_client_key'] = '8d0295087403c7414b4e0ce3baaf7ff1'; $config['edot_client_secret'] = '99d6b4ea719fc1b7d7eac0b0'; $config['edot_client_app_name'] = 'HCProduction'; // $config['smtp'] = "mail.nabatisnack.co.id"; // $config['smtp_debug'] = 0; // $config['smtp_debugtest'] = 1; // $config['smtp_auth'] = true; // $config['port'] = 587; // $config['ssl'] = [ // 'verify_peer' => false, // 'verify_peer_name' => false, // 'allow_self_signed' => true // ]; // $config['mail_user'] = "no-reply@nabatisnack.co.id"; // $config['mail_password'] = "NBT%QWfc62RP"; $config['whatsapp_endpoint']= "https://service-chat.qontak.com/api/open/v1/broadcasts/whatsapp/direct/"; $config['wa_auth_url']= "https://service-chat.qontak.com/oauth/token"; $config['channel_integration_id']="40f9ae05-a481-4b42-912d-feda75615903"; $config['wa_username']="james_sinaga@pinusmerahabadi.co.id"; $config['wa_password']="PMAoffice99_123"; $config['wa_grant_type']="password"; $config['wa_client_id']="RRrn6uIxalR_QaHFlcKOqbjHMG63elEdPTair9B9YdY"; $config['wa_client_secret']="Sa8IGIh_HpVK1ZLAF0iFf7jU760osaUNV659pBIZR00"; $config['wa_token_need_reload']=true; // ini di set true jika sudah 1 tahun ke depan saja $config['wa_token_name']='qontak_token'; $config['whatsapp_sender']= "082123947499"; $config['whatsapp_api_token']="kV838ObYkux0kDvIUlLzG6Q33r4FBThg7EiL80kUD8Ta7Ub1LKyBFGezljpdDK6X"; $config['whatsapp_device_id']="6GZ69D"; $config['fcm_token'] = 'AAAApZfuw4I:APA91bE1CA3Mba_5mo0DQlfpRh50HrKygjWuPseHnXR517fP4ZITsWefMXkADbINNXhux494HoARcFe2gLybx0TEJvS6Igist7lerDW-JcRHuCBkCLAAYvfgwBwRFiPk3hRZTWrXpe8r'; $config['api_geo_tz_endpoint'] = 'http://10.5.1.8:49160'; $config['api_geo_tz_key'] = '34ca56dc6f424022a92e036357233310'; // $config['api_geo_tz_endpoint'] = 'https://api.ipgeolocation.io'; // $config['api_geo_tz_key'] = '34ca56dc6f424022a92e036357233310';