public function ajax($selector = '#content')
    {
        $this->ajax = $this->di->get('core.ajax');

        $cmd = new DomCommand($selector, 'html', '--empty--');

        // Prepare a fresh ajax command object
        $this->ajax_cmd = $cmd;

        // Get content from Controller::run()
        $content = $this->run();

        if ($content !== false) {

            $this->ajax_cmd->setArgs($content);
            $this->ajax_cmd->setId(get_called_class() . '::' . $this->action);

            if (empty($this->ajax_cmd->getSelector()) && !empty($selector)) {
                $this->ajax_cmd->setSelector($selector);
            }

            $this->ajax->addCommand($this->ajax_cmd);
        }
    }