A
A
Alexey Verkhovtsev2016-11-13 18:00:55
CodeIgniter
Alexey Verkhovtsev, 2016-11-13 18:00:55

Where is the best place to receive data from the form and process it, check the validation?

Hello everyone, tell me, adhering to the MVC concept, in the Codeigniter framework, where exactly should I receive data, process it, and also perform validation checks, in the controller or model?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2016-11-13
@egormmm

Accept and clear in the controller. Validate in it, or in a separate, specially created object.
But it’s better the way it is most understandable, more logical and more convenient for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question