本文整理汇总了PHP中CI_Email::print_debugger方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Email::print_debugger方法的具体用法?PHP CI_Email::print_debugger怎么用?PHP CI_Email::print_debugger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_Email
的用法示例。
在下文中一共展示了CI_Email::print_debugger方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: view
$subject = 'subject to test email';
// Pass some data into the email templates
$email_data = array();
$email_data['firstname'] = 'Look';
$email_data['lastname'] = 'look';
$email_data['email'] = 'tester@email.com';
define('MB_ENABLED', TRUE);
define('ICONV_ENABLED', TRUE);
$email_sender = new CI_Email($config);
$email_sender->from($from_address, $form_name);
$email_sender->to($to_address);
$email_sender->subject($subject);
$email_sender->message(view('email_template', $email_data));
//$email_sender->set_alt_message(view('email_template', $email_data));
if (!$email_sender->send()) {
exit('error' . 'User::create - Unable to send new user email. Response is as follows:' . $email_sender->print_debugger() . "\n\n");
} else {
echo 'email sent';
}
// Load view function
function view($path, $data)
{
ob_start();
extract($data);
include $path . '.php';
return ob_get_clean();
}
function is_php($version)
{
static $_is_php;
$version = (string) $version;