serhatozles / yii2-htmltemplateintegrator
HTML Template Integrator
Installs: 70
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 4
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jquery-textcomplete: 0.3.*
- kartik-v/yii2-helpers: dev-master
- serhatozles/yii2-simplehtmldom: dev-master
This package is not auto-updated.
Last update: 2024-12-17 05:02:19 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist serhatozles/yii2-htmltemplateintegrator "*"
or add
"serhatozles/yii2-htmltemplateintegrator": "*"
to the require section of your composer.json
file.
What is This Extension doing?
This extension can help you for your html template integration to Yii2.
After one click, Your asset and layout files will be ready.
Properties
- Assets
- Layouts
- Controller
- Actions
It's making all of them.
Usage
Firstly, you have to put your template folder into @app/template.
And you add into @app/config/main.php
'controllerMap' => [
'integrator' => [
'class' => 'serhatozles\themeintegrator\Controller',
]
],
Example:
/frontend
/frontend/template
/frontend/template/yourtemplate
/frontend/template/yourtemplate/css
/frontend/template/yourtemplate/image
/frontend/template/yourtemplate/...
/frontend/template/yourtemplate/index.html
/frontend/template/yourtemplate/...
After, Open to web "integrator/define"
That's it.