eapanel / yii2-publications
管理应用程序的出版物
0.1.3
2018-09-02 13:14 UTC
Requires
- howardeagle/yii2-inline-widgets-behavior: *
- kartik-v/yii2-widget-datetimepicker: *
- kartik-v/yii2-widget-select2: *
- robote13/yii2-components: ^1.1.0
- robote13/yii2-seotags-manager: ^0.1.0@stable
- robote13/yii2-widget-speakingurl: *@dev
- voskobovich/yii2-linker-behavior: ^4.0
- vova07/yii2-fileapi-widget: dev-feature-flysystem
- vova07/yii2-imperavi-widget: *
- yiisoft/yii2: ^2.0.14
- yiisoft/yii2-bootstrap: ~2.0
This package is auto-updated.
Last update: 2024-08-29 03:42:00 UTC
README
添加了保存出版物SEO优化的URL的功能。
覆盖模型
假设你决定覆盖Article类。在你的命名空间下创建一个新的Article类。例如@app/models
。
namespace app\models;
class Article extends eapanel\publications\models\Article
{
public function init()
{
// custom code
parent::init();
}
}
为了使yii2-publications使用你的类,你需要在index.php文件中配置[依赖注入容器],如下所示
...
Yii::$container->set(\eapanel\publications\models\Article::className(), \app\models\Article::className());
(new yii\web\Application($config))->run();
...