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   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-06-27 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 8 All time: 11,435 This week: 59Up
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: 10 packages by
Country: United States United States
Age: 35
All time rank: 4332551 in United States United States
Week rank: 18 Up4 in United States United States Up
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 (66)  
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 (66)  /  components  
File Role Description
  Plain text file Utils.php Class Class source

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

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

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

  Files folder image Files (66)  /  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 (66)  /  messages  /  ar  
File Role Description
  Accessible without login Plain text file staticpages.php Aux. Configuration script

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  Files folder image Files (66)  /  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 (66)  /  views  
File Role Description
Files folder imagebackend (1 directory)
Files folder imagefrontend (1 directory)

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

  Files folder image Files (66)  /  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 (66)  /  views  /  frontend  
File Role Description
Files folder imagepage (1 file)

  Files folder image Files (66)  /  views  /  frontend  /  page  
File Role Description
  Accessible without login Plain text file view.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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:8
This week:0
All time:11,435
This week:59Up