0.00
Рейтинг
0.01
Сила

Сергей

Столкнулся с вот такой вот проблемой

Доброго времени суток! столкнулся с вот такой вот проблемой, добавил при регистрации «дополнительные» поля (имя, фамилия, система, номер), но при нажатии на конечную клавишу зарегистрироваться ничего не происходит, сейчас опишу все что сделал, сильно не пинайте):

пошел в ActionRegistration.class.php и там напортачил следующее:



 /**
* Проверка фамилии инструктора
*/
	     if (!func_check(getRequest('surname'),'text',2,100)) {
                $this->Message_AddError($this->Lang_Get('registration_surname_error'),$this->Lang_Get('error'));
                $bError=true;
            }                
            /**
            * Проверка имени
            */
             if (!func_check(getRequest('name'),'text',2,50)) {
               $this->Message_AddError($this->Lang_Get('registration_name_error'),$this->Lang_Get('error'));
               $bError=true;
            }
            /**
            * Проверка поля системы инструктора:
            */
            if (!func_check(getRequest('system'),'text',2,100)) {
               $this->Message_AddError($this->Lang_Get('registration_surname_error'),$this->Lang_Get('error'));
               $bError=true;
           }     
            /**
            * Проверка номера водолаза:
            */          
            if (!func_check(getRequest('number'),'text',2,50)) {
           $this->Message_AddError($this->Lang_Get('registration_name_error'),$this->Lang_Get('error'));
           $bError=true;



как мы видим, тут я добавил функции для полей которые будут располагаться при регистрации.

дальше я побрел в User.mapper.class.php и там прописал:


user_profile_name,
user_profile_surname
user_profile_system,
user_profile_number,


в index.php который в actionregistration добавил

<p><label>{$aLang.registration_surname}:</label><br />
       <input type="text" name"surname" value="{$_aRequest.surname}" class="input-wide" ><br />
       
       <p><label>{$aLang.registration_name}:</label><br />
       <input type="text" name"name" value="{$_aRequest.name}" class="input-wide" ><br />
       
       <p><label>{$aLang.registration_surname}:</label><br />
       <input type="text" name"system" value="{$_aRequest.system}" class="input-wide" ><br />
       
       <p><label>{$aLang.registration_name}:</label><br />
       <input type="text" name"number" value="{$_aRequest.number}" class="input-wide" ><br />


в итоге почему-то ничего не работает.укажите пожалуйста куда копать)