<?php use HMC\Config; use HMC\Hooks; ?> <!DOCTYPE html> <html> <head> <title><?php echo $data['title']; ?> | <?php echo Config::SITE_TITLE(); ?> </title> <?php Hooks::run('meta'); Hooks::run('css'); //use Assets::css or combine_css to inject stylesheets ?> </head> <body>
public static function sendEmail($message) { if (self::$emailError == true) { $mail = new Mail(); $mail->setFrom(\HMC\Config::SITE_EMAIL()); $mail->addAddress(\HMC\Config::SITE_EMAIL()); $mail->subject('New error on ' . \HMC\Config::SITE_TITLE()); $mail->body($message); $mail->send(); } }