Adding deprecated notice to HtmlHelper::radio() this has been replaced with FormHelper::radio() since [5338]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5378 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-07-06 03:47:35 +00:00
parent 9cd8a79ad9
commit 4ff21a6a08
2 changed files with 3 additions and 6 deletions

View file

@ -647,7 +647,7 @@ class AuthComponent extends Object {
} elseif (is_array($user) && isset($user[$this->userModel])) {
$user = $user[$this->userModel];
}
if (is_array($user) && (isset($user[$this->fields['username']]) || isset($user[$this->userModel . '.' . $this->fields['username']]))) {
$find = array();
if (isset($user[$this->fields['username']]) && !empty($user[$this->fields['username']]) && !empty($user[$this->fields['password']])) {

View file

@ -395,13 +395,10 @@ class HtmlHelper extends AppHelper {
/**
* Creates a set of radio widgets.
*
* @param string $fieldName Name of a field, like this "Modelname/fieldname"
* @param array $options Radio button options array
* @param array $inbetween String that separates the radio buttons.
* @param array $htmlAttributes Array of HTML attributes.
* @return string
* @deprecated
*/
function radio($fieldName, $options, $inbetween = null, $htmlAttributes = array()) {
trigger_error(__('(HtmlHelper::radio) Deprecated: Use FormHelper::radio instead', true), E_USER_WARNING);
$this->setFormTag($fieldName);
$value = isset($htmlAttributes['value']) ? $htmlAttributes['value'] : $this->value($fieldName);