public function setApplication(Application $app)
    {
        $this
            ->setVariable('app', $app)
            ->setVariable('path_config', $app->pathConfig)
            ->setVariable('i18n', $app->i18n);

        try
        {
            $this->setVariable('db', $app->db);
        }
        catch (\Wedeto\DB\Exception\ConfigurationException $db)
        {}
        return $this;
    }