Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:09:33+00:00 2026-06-04T01:09:33+00:00

With CodeIgniter you can use the built in form validation class, which basically allows

  • 0

With CodeIgniter you can use the built in form validation class, which basically allows you to run a POST input against a set of rules for each field. The issue is though, that the validation rules are generally always set in the controller.

Surely this means if more than one controller is accessing the specific table (via its model), you’re going to have to have an additional copy of the validation rules in another controller.

Because of this, wouldn’t it be better to set the validation rules in the model, and then load them from there?

Unless I’m missing something completely here? Just seems a bit of an odd way of doing it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:09:34+00:00Added an answer on June 4, 2026 at 1:09 am

    You can use a config file for this sort of situation, and load relevant name upon ->run('name').

    See documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I could use some guidance in how to proceed on form validation in CodeIgniter.
in codeigniter you can use wildcard to reroute. i never heard the word wildcards
In Codeigniter, we can use the force_download($file_name,$data) function from the download helper to force
Can I use Codeigniter classes without implementing the whole mvc pattern the same way
I can't use Xdebug to debug an application built with Code Igniter, but I
Is there any built-in debug function for codeigniter to use in controller? In cakephp
I have a website built in codeigniter, and now I want to use google
Is there any class or library that I can use for profiling, finding bottlenecks,
You can use the URL helper in Code Igniter to load CSS and Javascript
How can I hide the parameters in Codeigniter? I have this URL: http://example.com/profile/1 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.