本文整理汇总了PHP中ErrorHandler::display方法的典型用法代码示例。如果您正苦于以下问题:PHP ErrorHandler::display方法的具体用法?PHP ErrorHandler::display怎么用?PHP ErrorHandler::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ErrorHandler
的用法示例。
在下文中一共展示了ErrorHandler::display方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
if ($book->price !== '0.00') {
?>
<p><span class="note">Цена:</span><br> <b><?php
echo $book->price;
?>
грн.</b></p>
<br>
<!-- -->
<!-- CUSTOMER ORDER -->
<!-- -->
<form action="" method="post">
<span class="note">Желаете оформить заказ?</span><br>
<!-- Adress -->
<?php
$errorHandler->display('address');
?>
<label for="address">Адрес*</label><br>
<input type="text" name="address" class="input" id="adress"><br>
<!-- Customer full name -->
<?php
$errorHandler->display('customer_name');
?>
<label for="customer_name">Ф.И.О.*</label><br>
<input type="text" name="customer_name" class="input" id="customer_name"><br>
<!-- Number of copies to order -->
<?php
$errorHandler->display('quantity');
?>
<label for="quantity">Количество экземпляров</label><br>
<input type="text" name="quantity" class="input" id="quantity"><br>
示例2: basename
Redirect::to('manage.php');
}
} else {
Redirect::to();
}
}
?>
<div class="wrapper">
<form action="<?php
echo basename(__FILE__) . '?' . 'id=' . $author->id;
?>
" method="post" class='book-management'>
<!-- Author's name -->
<?php
$errorHandler->display('name');
?>
<label for="name">Имя автора*</label><br>
<input type="text" name="name" class="input" id="name" value="<?php
echo $author->name;
?>
"><br>
<!-- Author's secondary name -->
<?php
$errorHandler->display('name_secondary');
?>
<label for="name">Дополнительное имя автора*</label><br>
<input type="text" name="name_secondary" class="input" id="name_secondary" value="<?php
echo $author->name_secondary;
?>
示例3:
<?php
require 'config.class.php';
require 'errorhandler.class.php';
ErrorHandler::test();
/** Trigger Output **/
ErrorHandler::$display = true;
ErrorHandler::getErrors('both');
//Config::devDump();
示例4: basename
Redirect::to();
}
}
/*==================================
= User input =
==================================*/
?>
<form action="<?php
echo basename(__FILE__) . '?' . 'id=' . $book->id;
?>
" method="post" enctype="multipart/form-data" class='book-management'>
<!-- Author -->
<?php
$errorHandler->display('author');
?>
<label for="author">Авторы*</label><br>
<input type="text" name="author" id="author" class="input" value="<?php
echo $book->author;
?>
" placeholder='разбиваются запятыми'><br>
<!-- Title -->
<?php
$errorHandler->display('title');
?>
<label for="title">Название*</label><br>
<input type="text" name="title" id="title" class="input" value="<?php
echo $book->title;
?>