public function action($actions, $function)
    {
        if (!is_array($actions)) {
            $actions = [$actions];
        }


        $controller = $this->_current['controller'];

        foreach ($actions as $action) {
            $path = $controller . '.' . $action;

            self::$_data = Hash::insert(self::$_data, $path, [
                        'function' => $function,
                        'roles' => [],
            ]);

            $this->_runFunction($action);
        }
    }