Welcome Guest, Not a member yet? Register   Sign In
why we used Model
#1

[eluser]BD-CI-Programmer[/eluser]
I am using a Controller like this

Code:
<?php
class Bangladesh extends Controller
{
    function Bangladesh ()
    {
        parent::Controller();
    }

function my_function()
{

$this->load->database();
$query = $this->db->query("Query")
if($query->num_rows()>0)
   {
return $query->result();
   }
else
return 0;

   }

}
?>

this code is working. But my questions, why we used Model


Messages In This Thread
why we used Model - by El Forum - 04-21-2008, 02:44 AM
why we used Model - by El Forum - 04-21-2008, 03:07 AM
why we used Model - by El Forum - 04-21-2008, 03:12 AM
why we used Model - by El Forum - 04-21-2008, 03:16 AM
why we used Model - by El Forum - 04-21-2008, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB