[eluser]nirbhab[/eluser]
When you are going to work on large php scripts/projects than you will need the model, to make your code more cleaner and understandable (to you and to others-might be debugged by other at some times).
There are inline php coded sites also, but we follow MVC, so that our code is well formated, matches some or the other standards,e.i. accepted universally.
And according to me the flow of your above code is gud to begin learning CI.