1. Go to this page and download the library: Download roadiz/abstract-user-theme 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/ */
roadiz / abstract-user-theme example snippets
# app/AppKernel.php
/**
* {@inheritdoc}
*/
public function register(\Pimple\Container $container)
{
parent::register($container);
/*
* Add your own service providers.
*/
$container->register(new \Themes\AbstractUserTheme\Services\AbstractUserThemeProvider());
}
# themes/MyAwesomeTheme/MyAwesomeThemeApp.php
namespace Themes\MyAwesomeTheme;
use Themes\AbstractUserTheme\AbstractUserThemeApp;
/**
* MyAwesomeThemeApp class
*/
class MyAwesomeThemeApp extends AbstractUserThemeApp {
}
declare(strict_types=1);
namespace Themes\MyAwesomeTheme\Controllers;
use Themes\AbstractUserTheme\Controllers\DeleteAccountControllerTrait;
use Themes\MyAwesomeTheme\MyAwesomeThemeApp;
class DeleteAccountController extends MyAwesomeThemeApp
{
use DeleteAccountControllerTrait;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.