PHP code example of scaytrase / symfony-switchable-theme
1. Go to this page and download the library: Download scaytrase/symfony-switchable-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/ */
scaytrase / symfony-switchable-theme example snippets
class MyTheme implements ThemeInterface {
public function get($layout = 'base') {return 'MyBundle:MyTheme:base.html.twig';}
public function all() {return array('base' => 'MyBundle:MyTheme:base.html.twig');}
public function getType() {return 'my_theme';}
}