Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Cake
View
Helper
FormHelper
isFieldError
Cake\View\Helper\FormHelper::isFieldError PHP Метод
Документация по классу FormHelper
Показать файл
Открыть проект
isFieldError()
публичный
Метод
Returns true if there is an error for the given field, otherwise false
См. ссылку:
http://book.cakephp.org/3.0/en/views/helpers/form.html#displaying-and-checking-errors
public
isFieldError
(
string
$field
) :
boolean
$field
string
This should be "modelname.fieldname"
Результат
boolean
If there are errors this method returns true, else false.
public function isFieldError($field) { return $this->_getContext()->hasError($field); }
FormHelper
__call
__construct
_addDefaultContextProviders
_csrfField
_datetimeOptions
_extractOption
_formUrl
_getContext
_getInput
_getLabel
_groupTemplate
_initInputField
_inputContainerTemplate
_inputLabel
_inputType
_isRequiredField
_lastAction
_magicOptions
_optionsOptions
_parseOptions
_secure
_secureFieldName
_singleDatetime
addContextProvider
addWidget
allInputs
button
checkbox
context
create
date
dateTime
day
end
error
fieldset
file
hidden
hour
implementedEvents
input
inputs
isFieldError
label
meridian
minute
month
multiCheckbox
postButton
postLink
radio
resetTemplates
secure
select
submit
textarea
time
unlockField
widget
widgetRegistry
year