[eluser]umefarooq[/eluser]
Welcome to CI
Just for your understanding about MVC is as
M for Model
model is you database layer with model you just simply interact with database fetch records, insert, update and delete records, simple database interaction,
V for View
view is you front end layer it contains html and programming code to display your results, its get parameters from controller to view data or results.
C for Controller
controller is logical or middle layer its communicate with both model and view your all code will be in controller, if you are dealing with database records first you have to call model with controller to fetch or update or delete record then the result will go to view to display result, if you are not dealing with database then you can call simple views from controller
for 2 or 3 column template you can call views in views
example in case of 3 columns
Code:
<div class="left">
<?$this->load->view('left',$pass_data_for_left)?>
</div>
<div class="center">
<?=$content?>
</div>
<div class="right">
<?$this->load->view('right',$pass_data_for_righ)?>
</div>
all data parameters you can send through controller and you all 3 views are have html and php code