PHP code example of ibr / web-asset-loader

1. Go to this page and download the library: Download ibr/web-asset-loader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ibr / web-asset-loader example snippets


use \IBR\WebAssetLoader\Loader as WebAssetLoader;

abstract class BasePresenter extends \Nette\Application\UI\Presenter
{
	/**
	 * @var WebAssetLoader
	 * @inject
	 */
	public $webAssetLoader;

	public function createComponentWebAssetLoader()
	{
		return $this->webAssetLoader;
	}

}