首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在NetBeans中建立YII2Web框架编码标准

在NetBeans中建立YII2Web框架编码标准
EN

Stack Overflow用户
提问于 2015-03-14 06:29:24
回答 2查看 8.2K关注 0票数 4

我读过。但是如何在Windows中安装NetBeans呢?

EN

回答 2

Stack Overflow用户

发布于 2015-03-14 12:52:59

Yii2 要求PHP5.4最小值,因此如果您的IDE支持PHP5.4或更高版本,那么它也将显示Yii2的标准。

您也可以查看此netbeans的netbeans http://plugins.netbeans.org/plugin/47246/php-yii-framework-netbeans-phpcc

票数 3
EN

Stack Overflow用户

发布于 2019-04-12 20:01:24

在项目的根目录中,创建名为autocompletion.php的文件并将其添加到文件中。

代码语言:javascript
复制
 /**
 * Yii bootstrap file.
 * Used for enhanced IDE code autocompletion.
 * Note: To avoid "Multiple Implementations" PHPStorm warning and make autocomplete faster
 * exclude or "Mark as Plain Text" vendor/yiisoft/yii2/Yii.php file
 */
class Yii extends \yii\BaseYii
{
    /**
     * @var BaseApplication|WebApplication|ConsoleApplication the application instance
     */
    public static $app;
}

/**
 * Class BaseApplication
 * Used for properties that are identical for both WebApplication and ConsoleApplication
 *
 * @property trntv\filekit\Storage $fileStorage
 * @property common\components\keyStorage\KeyStorage $keyStorage
 * @property yii\web\UrlManager $urlManagerFrontend UrlManager for frontend application.
 * @property yii\web\UrlManager $urlManagerBackend UrlManager for backend application.
 * @property yii\web\UrlManager $urlManagerStorage UrlManager for storage application.
 * @property trntv\glide\components\Glide $glide
 * @property trntv\bus\CommandBus $commandBus
 */
abstract class BaseApplication extends yii\base\Application
{
}

/**
 * Class WebApplication
 * Include only Web application related components here
 *
 * @property User $user User component.
 */
class WebApplication extends yii\web\Application
{
}

/**
 * Class ConsoleApplication
 * Include only Console application related components here
 */
class ConsoleApplication extends yii\console\Application
{
}

/**
 * User component
 * Include only Web application related components here
 *
 * @property \common\models\User $identity User model.
 * @method \common\models\User getIdentity() returns User model.
 */
class User extends \yii\web\User
{
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29046137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档