Best option in MVC

Hi everyone,

In a web application, I need to load a file (through a form), to read the contents and save data into database. Where should the logic be: in the controller or in the model?


thats what models are for

[color="#008000"]NOTE: moved to proper section (General Discussion for Yii 1.1.x instead of Tips, Snippets and Tutorials)[/color]