38311
- 38311 赞了回答
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;
- 38311 发表了说说刚刚是不是挂了。。
- 38311 2016-09-12 已签到连续签到1天,获得了5个金钱
- 38311 赞了回答
上一句已经跳转到其他页面了,想知道如果没有这一句会发生什么
- 38311 赞了回答
看到源码是这么写,exit 终止执行,楼上的都是正确 也可以换成: die; return;
public function end($status=0,$exit=true)
{ if($this->hasEventHandler('onEndRequest')) $this->onEndRequest(new CEvent($this)); if($exit) exit($status); }
上一句已经跳转到其他页面了,想知道如果没有这一句会发生什么
- 38311 赞了回答
Yii::$app->end($status = 0, $response = null)
表示终止程序;默认的表示正常终止,状态默认为0;其它状态均异常;