让phpstorm能更好的自动提示 [ 技术分享 ]
加下段代码复制后,粘帖到yii/framework/base/CApplication.php 大概在74行左右,就能让phpstorm更好的帮助你自动提示:
* @property IAuthManager $authManager The authorization manager component.
* @property CAssetManager $assetManager The asset manager component.
* @property CHttpSession $session The session component.
* @property CWebUser $user The user session information.
* @property IViewRenderer $viewRenderer The view renderer.
* @property CClientScript $clientScript The client script manager.
* @property IWidgetFactory $widgetFactory The widget factory.
* @property CThemeManager $themeManager The theme manager.
* @property CTheme $theme The theme used currently. Null if no theme is being used.
* @property string $controllerPath The directory that contains the controller classes. Defaults to 'protected/controllers'.
* @property string $viewPath The root directory of view files. Defaults to 'protected/views'.
* @property string $systemViewPath The root directory of system view files. Defaults to 'protected/views/system'.
* @property string $layoutPath The root directory of layout files. Defaults to 'protected/views/layouts'.
粘贴后在代码中提示诸如 Yii::app()->user
Yii::app()->assetManager
Yii::app()->theme
等等
比之前提示更多更全
共 0 条回复
没有找到数据。
ljcqx
注册时间:2011-03-21
最后登录:2016-12-29
在线时长:0小时17分
最后登录:2016-12-29
在线时长:0小时17分
- 粉丝2
- 金钱200
- 威望0
- 积分200