please explain the dataflow in MVC specially in codeigniter

Posted by pokhara on Stack Overflow See other posts from Stack Overflow or by pokhara
Published on 2010-05-09T10:20:02Z Indexed on 2010/05/09 10:28 UTC
Read the original article Hit count: 195

Filed under:

Dear friends,

Can anyone please explain me the object flow in codeigniter MVC ? I can see for example when I put the followong code in controller it works, but i am not being able to figure out which part of this goes in model in vews. I tried several ways but coudn't. When i use the example codes from other it works but myself i am getting confused. Please help

    $query = $this->db->query("YOUR QUERY");

foreach ($query->result() as $row)
{
   echo $row->title;
   echo $row->name;
   echo $row->body;
}

© Stack Overflow or respective owner

Related posts about codeigniter