Posterous theme by Cory Watilo

Done MVC

Today, I done my MVC framework raw, not include library file. Just call Controller -> Model -> View I told about my controller in yesterday. Here my view design
class simpleModel extends Model {

function simpleModel()
{
parent::Model();
}
function printit()
{
$data['a']=1;
$this->load->view("Test",$data);
}
}
Here test view
<h3>Title</h3><?= $a; ?>
how nice. Haha... you may told, imm... totally look like CI. Of course, I'm crazy in CI and my MVC look like CI but code is not same. I also used extract method for array key to variable. Now, I just need to combine with my old apiwork. After that, apiwork will be MVC framework.