davidjeddy / yii2-pieces-theme
Pieces Theme
Package info
github.com/davidjeddy/yii2-pieces-theme
Type:theme
pkg:composer/davidjeddy/yii2-pieces-theme
Requires
- cybercog/yii2-google-analytics: ~0.2
- yiisoft/yii2: ^2.0.0
This package is auto-updated.
Last update: 2026-04-19 00:24:17 UTC
README
[!WARNING] ⚠️ This project has been archived and is no longer maintained. ⚠️
Github has shown it does not respect its users. Other have said it better than I can.
- https://www.theregister.com/2022/06/30/software_freedom_conservancy_quits_github/
- https://www.andrlik.org/dispatches/migrating-from-github-motivation/
- https://techresolve.blog/2025/12/27/looking-to-migrate-company-off-github-whats-the/
- https://lord.io/leaving-github/
- https://dev.to/alanwest/how-to-actually-migrate-from-github-to-codeberg-without-losing-your-mind-33bf>
Development has moved to Codeberg: ➡️ https://codeberg.org/DavidJEddy/yii2-pieces-theme
Please update your remotes:
git remote set-url origin https://codeberg.org/DavidJEddy/yii2-pieces-theme
Yii2 Pieces Compendium Theme
About
Yii2 Custom Theme for pieces-compendium.com
Badges
--need SensioLabs tests setup--
Credit
Based on https://github.com/sheillendra/yii2-theme.
Installing
- Run
php composer.phar require davidjeddy/yii2-pieces-themeon the terminal in your {project root} - Or add
"davidjeddy/yii2-pieces-theme": "^2"to your projects composer.json in the "required": [...] section, then execute aphp composer.phar update -ocommand.
Next edit /application/root/path.env (or create if one does not exist). Edit the proper values for STORAGE_HOST_INFO.
Example: STORAGE_HOST_INFO = https://storage.pieces-compendium.
Then edit the applications ./config/web.php (or similar):
'components' => [
...
'assetManager' => ['linkAssets' => true],
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@vendor/davidjeddy/yii2-pieces-theme/src/views',
],
],
],
...
],
Structure:
backend/
...
views/
web/
...
themes/
themes_1/
assets/
views/
layout/
controller_name/
...
themes_2/
themes_3/
Usage
In your application's view layout file, initialize the theme.
public function init()
{
parent::init();
\Yii::$app->view->theme->pathMap[your_module_name.'/views'] = [your_module_name.'/themes/'.\Yii::$app->view->theme->active.'/views'];
// custom initialization code goes here
}