PHP code example of wexample / symfony-design-system-demo
1. Go to this page and download the library: Download wexample/symfony-design-system-demo 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/ */
wexample / symfony-design-system-demo example snippets
public static function getLoaderFrontPaths(): array
{
return [
BundleHelper::getBundleCssAlias(static::class) => __DIR__ . '/../assets/',
];
}
#[Route(
name: 'wexample_design_system_generic_',
path: AbstractDesignSystemController::CONTROLLER_BASE_ROUTE . '/generic/',
)]
#[TemplateBasedRoutes]
final class GenericController extends AbstractDesignSystemGenericController
#[Route(path: 'modal-test-simple', name: self::ROUTE_MODAL_TEST_SIMPLE, options: AbstractController::ROUTE_OPTIONS_ONLY_EXPOSE)]
public function modalTestSimple(): Response
{
return $this->renderPage(self::ROUTE_MODAL_TEST_SIMPLE);
}