1. Go to this page and download the library: Download akqa/silverstripe-tumu 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/ */
akqa / silverstripe-tumu example snippets
use Akqa\SilverStripe\Traits\ViteProvider;
class PageController extends ContentController
{
use ViteProvider;
}
use Akqa\SilverStripe\Traits\ViteProvider;
class PageController extends ContentController
{
use ViteProvider;
protected function init()
{
parent::init();
$this->setPackageManager('pnpm');
$this->setDefaultCssAsset('app/client/src/style.css')
}
}
use Akqa\SilverStripe\Traits\ViteProvider;
class PageController extends ContentController
{
use ViteProvider;
/**
* @return array<string>
*/
public function getAdditionalRequirements(): array
{
return [
'app/client/src/print.css' => [
'media' => 'print'
],
'app/client/src/additional.jsx'
];
}
}