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  
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

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