本文整理匯總了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;