Managing publications for the application

0.1.3 2018-09-02 13:14 UTC

This package is auto-updated.

Last update: 2020-07-30 01:12:51 UTC


Добавлена возможность сохранять ЧПУ для публикаций.

Overriding models

Assume you decided to override Article class. Let’s create new Article class under your namespace. For example@app/models.

namespace app\models;

class Article extends eapanel\publications\models\Article
    public function init()
        // custom code

In order to make yii2-publications use your class you need to configure [Dependency Injection container] in index.php file as follows:

Yii::$container->set(\eapanel\publications\models\Article::className(), \app\models\Article::className());

(new yii\web\Application($config))->run();