in Education by
$fields['password'] = "Password"; $fields['confirm_password'] = "Confirm Password"; $fields['customer_number'] = "Customer Number"; $fields['customer_password'] = "Customer Number"; $fields['first_name'] = "First Name"; $fields['last_name'] = "Last Name"; $fields['company_name'] = "Company Name"; $fields['email_address'] = "Email Address"; $fields['confirm_email'] = "Confirm Email Address"; $fields['phone_number'] = "Phone Number"; $fields['street'] = "Street Address"; $fields['city'] = "City"; $fields['zip_code'] = "Zip Code"; $fields['state'] = "State"; $fields['country'] = "Country"; $this->form_validation->set_fields($fields); I get the Error ** Fatal error: Call to undefined method CI_Form_validation::set_fields() ** I know this error is because Validation library is depreciated and replaced by the Form_Validation But is there any replacement in current library without changing much of the code ? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Is there any replacement in current library without changing much of the code ? There is no quick/easy way to migrate this code (your form field config) to the newer version, it must be done manually. If your old config was like: $fields['password'] = "Password"; You'll need to change it to: $fields[] = array( 'field' => 'password', 'label' => 'Password' ); And use set_rules(): $this->form_validation->set_rules($fields); This is a major upgrade to your Codeigniter installation (Release Date: July 12, 2007... v1.5 is quite old by now) so there's no point in fiddling around trying to half-upgrade your code, just bite the bullet and make sure to test.

Related questions

0 votes
    Facing issue in session with the upgrade of my application to Spring 4.1.9 and Hibernate 4.3.11.. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    You have few report created in older versions of Web Intelligence 3.1 and want to upgrade to 4.x, which tool you should use?...
asked Mar 13, 2021 in Technology by JackTerrance
0 votes
    So I'm using Codeigniter and I want to upload files. It's working fine except for this one thing. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    How to change Swift version from 5 to 4 in Xcode?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    Upgraded Jenkins to 2.332.1 and a few plugins to try to stay up to date. Now getting the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    We create new sites in IIS 6 (Windows Server 2003) using IIS Manager. When these sites are created ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I'm getting this error when trying to add products to google content, my google account seems ok the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I want to connect android to my nao , it is version V4 or 1.14.5 and I do not find library ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    how can i set a profile in zoom app in version 5.2or 5.1 whatever if your answer works i will mark u as the brainliest and follow u Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    In a reaction, 2A→ Products the concentration of A decreases from 0.5 "mol" litre^(-1)→ 0.4mollitre-1 ... rate during this interval. Select the correct answer from above options...
asked Jan 4, 2022 in Education by JackTerrance
0 votes
    BRAIN DEVELOPER A. Fill in the blanks: 1. 2. A. is an organised way of storing information, A relational ... Syntax Kips 18 File Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
...