PHP code example of yottacms / framework
1. Go to this page and download the library: Download yottacms/framework 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/ */
yottacms / framework example snippets
// src/Kernel.php in Symfony >= v4
use YottaCms\Framework\Component\HttpKernel\PreloadBundlesKernelTrait;
// ...
class Kernel extends BaseKernel
{
use MicroKernelTrait, PreloadBundlesKernelTrait;
// remove or rename default "registerBundles" method (it will be replaced by PreloadBundlesKernelTrait)
public function registerBundlesDisabled()
{
$contents = return [
\Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle::class => ['all' => true], // @example
];
}
}