protected function setAssigns(array &$options)
    {
        $assigns = $this->controller->assigns();
        if (isset($options['assigns']) && is_array($options['assigns'])) {
            foreach ($options['assigns'] as $name => $value) {
                $assigns->set($name, $value);
            }
        }
        $options['assigns'] = $assigns;
    }