PHP code example of atk14 / mail-panel
1. Go to this page and download the library: Download atk14/mail-panel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atk14 / mail-panel example snippets
$bar = Tracy\Debugger::getBar();
$bar->addPanel(new MailPanel($this->mailer));
// file: lib/load.php
if(
!TEST &&
!$HTTP_REQUEST->xhr() &&
php_sapi_name()!="cli" // we do not want Tracy in cli
){
Tracy\Debugger::enable(PRODUCTION, __DIR__ . '/../log/');
}
// file: app/controllers/application_base.php
function _application_after_filter(){
if(!TEST){
$bar = Tracy\Debugger::getBar();
$bar->addPanel(new MailPanel($this->mailer));
}
}