Introduce set-model hook. It is very handy to populate other views (like sub-grids/cruds) when primary view (like form) is associated with model.
Introduce set-model hook. It is very handy to populate other views (like sub-grids/cruds) when primary view (like form) is associated with model.

usage exmple:
```
class View_Person_View extends View
{
    public function init()
    {
        parent::init();

        // main form
        $v = $this->add('Form');
        $this->addHook('set-model', function($self, $m, $f) use ($v) {
            $v->setModel($m, $f);
        });

        // sub-grid
        $g = $this->add('Grid');
        $this->addHook('set-model', function($self, $m, $f) use ($g) {
            $g->setModel($m->ref('BankAccounts'));
        });
    }
}

// with one setModel you can initialize everything
$this->add('View_Person_View')->setModel($m->load(1));
```

atk4/atk4,atk4/atk4,atk4/atk4,atk4/atk4