black-lamp / blcms-itpl
Backend template
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: >=2.0.4
This package is not auto-updated.
Last update: 2024-12-21 21:03:15 UTC
README
#Itpl - template for backend
for extensions:
Installation
- For install this template, your composer.json file must contain next block:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GutsVadim/blcms-itpl.git",
"options": {
"github-oauth": {
"github.com": "YOUR_TOKEN"
}
}
}
]
You may generate your Github token here.
- To work links, that direct to the frontend, you must configure the backend config:
'components' => [
...
'urlManagerFrontend' => [
'class' => bl\multilang\MultiLangUrlManager::className(),
'baseUrl' => '/',
'showScriptName' => false,
'enablePrettyUrl' => true,
'enableDefaultLanguageUrlCode' => false,
'rules' => [
[
'class' => bl\articles\UrlRule::className()
],
[
'class' => bl\cms\shop\UrlRule::className(),
'prefix' => 'shop'
],
]
]
]