public function setAssetsLoader(AssetsLoader $loader)
    {
        $this->assets_loader = $loader;
        $assets_db = $this->assets_loader->getAssets();
        if (!empty($assets_db)) {
            $_assets_package = Package::createFromAssetsLoader($this->assets_loader);
            foreach ($assets_db as $package=>$config) {
                if (!empty($config['views_path'])) {
                    $assets_package = clone $_assets_package;
                    $assets_package->loadFromArray($config);
                    foreach ($assets_package->getViewsPaths() as $path) {
                        $full_path = $assets_package->getFullPath($path);
                        if (@file_exists($full_path)) {
                            $this->setToView('setIncludePath', $full_path);
                        }
                    }
                }
            }
        }
        return $this;
    }