PHP code example of alexandresalome / multisite-bundle
1. Go to this page and download the library: Download alexandresalome/multisite-bundle 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/ */
alexandresalome / multisite-bundle example snippets
# app/AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
# ...
new Alex\MultisiteBundle\AlexMultisiteBundle(),
);
}
}
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Alex\MultisiteBundle\Annotation\Route;
/**
* @Route(name="login", paths={
* "fr_FR"="/connexion",
* "en_GB"="/login"
* })
*/
public function loginAction()
# ...