Ben bir yayınlanmıştır formu değeri 'name' i aşağıdaki kodu kullanmış bir value.For bu içerip, zend denetlemek istiyor
one method
if ($this->_getPatram('name') != null ) {
echo 'field name contains value';
} else {
echo 'field name contains null value';
}
second method
if ($this->_hasParam('name')) {
echo 'field name contains value';
} else {
echo 'field name contains null value';
}
output , when submitting the form with the 'name' field contains null value
in first method
alan adı null değer içeriyorsa (sonuç doğru)
in second method
alan adı değeri içerir (sonuç yanlış)
Yani bu ikisi arasındaki fark nedir? _hasParam ve _getParam