PHP code example of alexwhitman / view-themes
1. Go to this page and download the library: Download alexwhitman/view-themes 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/ */
alexwhitman / view-themes example snippets
app/
themes/
default/
views/
layout.blade.php
admin.blade.php
my-theme/
views/
layout.blade.php
View::make('layout'); // Loads app/themes/default/views/layout.blade.php
$app['view.finder']->setCurrentTheme('my-theme');
View::make('layout'); // Loads app/themes/my-theme/views/layout.blade.php
View::make('admin'); // Loads app/themes/default/views/layout.blade.php