这样配置的组件,phpstorm不能提示组件内的方法和属性。
'components'=>[ 'box'=>[ 'class'=>'frontend\components\box' ]]
回复内容: 这样配置的组件,phpstorm不能提示组件内的方法和属性。
'components'=>[ 'box'=>[ 'class'=>'frontend\components\box' ]]
/** @var \frontend\components\box $test */$test = yii::$app->box;
参考资料
http://www.yiichina.com/tutorial/487
视频
http://pan.baidu.com/share/link?shareid=1801456562&uk=1191547431&fid=322257966212691
http://www.tudou.com/programs/view/uum-7fbclj4/
