1. Go to this page and download the library: Download p2made/yii2-triangle-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/ */
p2made / yii2-triangle-theme example snippets
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@vendor/p2made/yii2-triangle-theme/views/multicolor',
// for the single color version use this line instead...
//'@app/views' => '@vendor/p2made/yii2-triangle-theme/views/singlecolor',
],
],
],
],
public function actions()
{
return [
...
'page' => [
'class' => 'yii\web\ViewAction',
],
];
}