| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 9 | All time:  11,504 This week: 51  | ||||
| Version | License | PHP version | Categories | |||
| yii2-staticpages-mod 1.0 | BSD License | 5 | HTML, Libraries, Content management | 
| Description | Authors Gabriel A. López López Contributor | |
| This package can generate static pages for a Yii2 Web application. | 
Module to manage static pages in a Yii2 application
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist daxslab/yii2-staticpages-module "*"
or add
"daxslab/yii2-staticpages-module": "*"
to the require section of your composer.json file.
./yii migrate --migration-path="@daxslab/staticpages/migrations"
In the backend configure the Page module by the following:
'modules' => [
    //...   
    'staticpages' => [
        'class' => daxslab\staticpages\Module::class,
        'controllerNamespace' => 'daxslab\staticpages\controllers\backend',
        // you can setup any InputWidget subclass as text editor
        'editorConfig' => [
            'class' => yii2mod\markdown\MarkdownEditor\MarkdownEditor::class,
        ];
    ],
    //...
]
And in frontend:
'modules' => [
    //...   
    'staticpages' => [
            'class' => daxslab\staticpages\Module::class,
            'controllerNamespace' => 'daxslab\staticpages\controllers\frontend',
            // you can specify a different view path for better matching your style
            'viewPath' => '@frontend/views/',
        ],
    //...
]
Proudly made by Daxslab.
|  Files (66) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  components (1 file) | ||||
|  controllers (2 directories) | ||||
|  messages (1 file, 48 directories) | ||||
|  migrations (1 file) | ||||
|  models (3 files) | ||||
|  views (2 directories) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE.md | Lic. | License text | ||
|  Module.php | Class | Class source | ||
|    README.md | Doc. | Documentation | ||
|  Files (66) | / | messages | 
| File | Role | Description | ||
|---|---|---|---|---|
|  ar (1 file) | ||||
|  az (1 file) | ||||
|  bg (1 file) | ||||
|  bs (1 file) | ||||
|  ca (1 file) | ||||
|  cs (1 file) | ||||
|  da (1 file) | ||||
|  de (1 file) | ||||
|  el (1 file) | ||||
|  es (1 file) | ||||
|  et (1 file) | ||||
|  fa (1 file) | ||||
|  fi (1 file) | ||||
|  fr (1 file) | ||||
|  he (1 file) | ||||
|  hr (1 file) | ||||
|  hu (1 file) | ||||
|  hy (1 file) | ||||
|  id (1 file) | ||||
|  it (1 file) | ||||
|  ja (1 file) | ||||
|  ka (1 file) | ||||
|  kk (1 file) | ||||
|  ko (1 file) | ||||
|  kz (1 file) | ||||
|  lt (1 file) | ||||
|  lv (1 file) | ||||
|  ms (1 file) | ||||
|  nb-NO (1 file) | ||||
|  nl (1 file) | ||||
|  pl (1 file) | ||||
|  pt-BR (1 file) | ||||
|  pt (1 file) | ||||
|  ro (1 file) | ||||
|  ru (1 file) | ||||
|  sk (1 file) | ||||
|  sl (1 file) | ||||
|  sr-Latn (1 file) | ||||
|  sr (1 file) | ||||
|  sv (1 file) | ||||
|  tg (1 file) | ||||
|  th (1 file) | ||||
|  tr (1 file) | ||||
|  uk (1 file) | ||||
|  uz (1 file) | ||||
|  vi (1 file) | ||||
|  zh-CN (1 file) | ||||
|  zh-TW (1 file) | ||||
|    config.php | Aux. | Configuration script | ||
|  Files (66) | / | migrations | 
| File | Role | Description | 
|---|---|---|
|  m180306_032829_create_page_table.php | Class | Class source | 
|  Files (66) | / | models | 
| File | Role | Description | 
|---|---|---|
|  Page.php | Class | Class source | 
|  PageQuery.php | Class | Class source | 
|  PageSearch.php | Class | Class source | 
|  Files (66) | / | views | / | backend | / | page | 
| File | Role | Description | 
|---|---|---|
|    create.php | Example | Example script | 
|    index.php | Example | Example script | 
|    update.php | Example | Example script | 
|    _form.php | Example | Example script | 
|    _search.php | Example | Example script | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.