PHP Classes

How Implement a PHP Static Page Generator Using the Package Yii2 Static Pages Module: Generate static pages for a Yii2 Web application

Recommend this page to a friend!
  Info   View files Documentation   View files View files (66)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-27 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: 4 This week: 4All time: 11,364 This week: 11Up
Version License PHP version Categories
yii2-staticpages-mod 1.0BSD License5HTML, Libraries, Content management
Description 

Authors

Gabriel A. López López
Carlos Cesar Caballero Díaz


Contributor

This package can generate static pages for a Yii2 Web application.

It provides a module for the Yii2 framework for managing and generating static pages from content stored in model objects.

The backend allows users to list, create, update, and search managed pages.

The front end generates the static pages from view templates.

Picture of Gabriel Alejandro López López
  Performance   Level  
Name: Gabriel Alejandro López ... <contact>
Classes: 8 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 3x

Documentation

StaticPages

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Module to manage static pages in a Yii2 application

Installation

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.

Database Migration

./yii migrate --migration-path="@daxslab/staticpages/migrations"

Configuration

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 folder image Files  
File Role Description
Files folder imagecomponents (1 file)
Files folder imagecontrollers (2 directories)
Files folder imagemessages (1 file, 48 directories)
Files folder imagemigrations (1 file)
Files folder imagemodels (3 files)
Files folder imageviews (2 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Plain text file Module.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  components  
File Role Description
  Plain text file Utils.php Class Class source

  Files folder image Files  /  controllers  
File Role Description
Files folder imagebackend (1 file)
Files folder imagefrontend (1 file)

  Files folder image Files  /  controllers  /  backend  
File Role Description
  Plain text file PageController.php Class Class source

  Files folder image Files  /  controllers  /  frontend  
File Role Description
  Plain text file PageController.php Class Class source

  Files folder image Files  /  messages  
File Role Description
Files folder imagear (1 file)
Files folder imageaz (1 file)
Files folder imagebg (1 file)
Files folder imagebs (1 file)
Files folder imageca (1 file)
Files folder imagecs (1 file)
Files folder imageda (1 file)
Files folder imagede (1 file)
Files folder imageel (1 file)
Files folder imagees (1 file)
Files folder imageet (1 file)
Files folder imagefa (1 file)
Files folder imagefi (1 file)
Files folder imagefr (1 file)
Files folder imagehe (1 file)
Files folder imagehr (1 file)
Files folder imagehu (1 file)
Files folder imagehy (1 file)
Files folder imageid (1 file)
Files folder imageit (1 file)
Files folder imageja (1 file)
Files folder imageka (1 file)
Files folder imagekk (1 file)
Files folder imageko (1 file)
Files folder imagekz (1 file)
Files folder imagelt (1 file)
Files folder imagelv (1 file)
Files folder imagems (1 file)
Files folder imagenb-NO (1 file)
Files folder imagenl (1 file)
Files folder imagepl (1 file)
Files folder imagept-BR (1 file)
Files folder imagept (1 file)
Files folder imagero (1 file)
Files folder imageru (1 file)
Files folder imagesk (1 file)
Files folder imagesl (1 file)
Files folder imagesr-Latn (1 file)
Files folder imagesr (1 file)
Files folder imagesv (1 file)
Files folder imagetg (1 file)
Files folder imageth (1 file)
Files folder imagetr (1 file)
Files folder imageuk (1 file)
Files folder imageuz (1 file)
Files folder imagevi (1 file)
Files folder imagezh-CN (1 file)
Files folder imagezh-TW (1 file)
  Accessible without login Plain text file config.php Aux. Configuration script

  Files folder image Files  /  messages  /  ar  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  az  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  bg  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  bs  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ca  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  cs  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  da  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  de  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  el  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  es  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  et  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  fa  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  fi  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  fr  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  he  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  hr  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  hu  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  hy  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  id  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  it  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ja  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ka  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  kk  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ko  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  kz  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  lt  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  lv  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ms  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  nb-NO  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  nl  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  pl  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  pt-BR  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  pt  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ro  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  ru  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  sk  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  sl  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  sr-Latn  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  sr  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  sv  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  tg  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  th  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  tr  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  uk  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  uz  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  vi  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  zh-CN  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  messages  /  zh-TW  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

  Files folder image Files  /  migrations  
File Role Description
  Plain text file m180306_032829_create_page_table.php Class Class source

  Files folder image Files  /  models  
File Role Description
  Plain text file Page.php Class Class source
  Plain text file PageQuery.php Class Class source
  Plain text file PageSearch.php Class Class source

  Files folder image Files  /  views  
File Role Description
Files folder imagebackend (1 directory)
Files folder imagefrontend (1 directory)

  Files folder image Files  /  views  /  backend  
File Role Description
Files folder imagepage (5 files)

  Files folder image Files  /  views  /  backend  /  page  
File Role Description
  Accessible without login Plain text file create.php Example Example script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file update.php Example Example script
  Accessible without login Plain text file _form.php Example Example script
  Accessible without login Plain text file _search.php Example Example script

  Files folder image Files  /  views  /  frontend  
File Role Description
Files folder imagepage (1 file)

  Files folder image Files  /  views  /  frontend  /  page  
File Role Description
  Accessible without login Plain text file view.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:4
This week:4
All time:11,364
This week:11Up