public function assign(array $data, $root = 'Ctrl')
    {
        foreach ($data as $k => $d) {
            if ($root != '') {
                if (!isset($this->viewData[$root])) {
                    $this->viewData[$root] = [];
                }
                $this->viewData[$root][$k] = $d;
            } else {
                $this->viewData[$k] = $d;
            }

        }
    }