PHP code example of baraja-core / assets-loader
1. Go to this page and download the library: Download baraja-core/assets-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/ */
baraja-core / assets-loader example snippets
abstract class BasePresenter extends \App\Presenters\BasePresenter
{
#[Inject]
public Api $assetsLoader;
public function startup(): void
{
parent::startup();
$this->template->assetsLoader = $this->assetsLoader->getHtmlInit($this->getAction(true));
}