ljcqx 2012-12-11 10:22:36 5703次浏览 0条回复 0 0 0

加下段代码复制后,粘帖到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 等等 比之前提示更多更全

    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册