nyx-solutions/yii2-nyx-mvc 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nyx-solutions/yii2-nyx-mvc

最新稳定版本:5.0.0

Composer 安装命令:

composer require nyx-solutions/yii2-nyx-mvc

包简介

Yii2 NYX MVC

README 文档

README

NYX MVC adds more functionality to the following YII2 MVC Classes: \yii\base\Model, \yii\db\ActiveRecord, \yii\web\Controller and \yii\web\View.

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist nyx-solutions/yii2-nyx-mvc "*"

or add

"nyx-solutions/yii2-nyx-mvc": "*"

to the require section of your composer.json file.

Usage

Models

Just use extends in your base class:

class Model extends \nyx\mvc\base\Model
{
}

ActiveRecord Models

Just use extends in your base class:

class ActiveRecordModel extends \nyx\mvc\base\ActiveRecord
{
}

Controllers:

Just use extends in your base class:

class Controller extends \nyx\mvc\web\Controller
{
}

Views:

Just use extends in your base class:

namespace frontend\components\web;

class View extends \nyx\mvc\web\View
{
}

And configure your View in the components section of your Yii2 configuration file.

'components' => [
    'view' => [
        'class' => 'frontend\components\web\View'
    ]
]

License

yii2-nyx-mvc is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

Yii2

统计信息

  • 总下载量: 922
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固