38311

38311

这家伙有点懒,还没写个性签名!

  • 财富值30
  • 威望值0
  • 总积分30

个人信息

  • 赞了回答

    gii配置中能修改的属性好像就只有这些了:

       /**
         * @inheritdoc
         */
        public $controllerNamespace = 'yii\gii\controllers';
        /**
         * @var array the list of IPs that are allowed to access this module.
         * Each array element represents a single IP filter which can be either an IP address
         * or an address with wildcard (e.g. 192.168.0.*) to represent a network segment.
         * The default value is `['127.0.0.1', '::1']`, which means the module can only be accessed
         * by localhost.
         */
        public $allowedIPs = ['127.0.0.1', '::1'];
        /**
         * @var array|Generator[] a list of generator configurations or instances. The array keys
         * are the generator IDs (e.g. "crud"), and the array elements are the corresponding generator
         * configurations or the instances.
         *
         * After the module is initialized, this property will become an array of generator instances
         * which are created based on the configurations previously taken by this property.
         *
         * Newly assigned generators will be merged with the [[coreGenerators()|core ones]], and the former
         * takes precedence in case when they have the same generator ID.
         */
        public $generators = [];
        /**
         * @var integer the permission to be set for newly generated code files.
         * This value will be used by PHP chmod function.
         * Defaults to 0666, meaning the file is read-writable by all users.
         */
        public $newFileMode = 0666;
        /**
         * @var integer the permission to be set for newly generated directories.
         * This value will be used by PHP chmod function.
         * Defaults to 0777, meaning the directory can be read, written and executed by all users.
         */
        public $newDirMode = 0777;
    
  • 赞了话题
    转载 PHP Yii框架相关知识
  • 回复了 的评论

    呵呵

    呵呵

  • 发表了说说
    刚刚是不是挂了。。
  • 2016-09-12 已签到
    连续签到1天,获得了5个金钱
  • 回复了 的回答

    上一句已经跳转到其他页面了,想知道如果没有这一句会发生什么

    自己试验了一下是这样的,感谢回复!

  • 赞了回答

    上一句已经跳转到其他页面了,想知道如果没有这一句会发生什么

  • 赞了回答

    看到源码是这么写,exit 终止执行,楼上的都是正确 也可以换成: die; return;

    public function end($status=0,$exit=true)

    {  
        if($this->hasEventHandler('onEndRequest'))  
            $this->onEndRequest(new CEvent($this));  
        if($exit)  
            exit($status);  
    }  
    
  • 上一句已经跳转到其他页面了,想知道如果没有这一句会发生什么

  • 赞了回答

    Yii::$app->end($status = 0, $response = null)表示终止程序;默认的表示正常终止,状态默认为0;其它状态均异常;

试用期 等级规则
30/50
资料完整度
0/100
用户活跃度
0/100

Ta的关注

2

Ta的粉丝

0

Ta的访客

1