Yii Framework Forum: Autocomplete Of Application Components - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Autocomplete Of Application Components Rate Topic: -----

#1 User is offline   sidewinder 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 218
  • Joined: 08-July 09
  • Location:Poland

Posted 23 October 2012 - 01:26 PM

Hello,
I've noticed that problem of autocompleting application components in various IDE's has been risen many times yet no solution has been applied. Components are properly documented in CWebApplication and CApplication, however Yii::app() is documented to return CApplication only. Simply changing:
/**
* Returns the application singleton or null if the singleton has not been created yet.
* @return CApplication the application singleton, null if the singleton has not been created yet.
*/


to

/**
* Returns the application singleton or null if the singleton has not been created yet.
* @return CApplication|CWebApplication|CConsoleApplication the application singleton, null if the singleton has not been created yet.
*/


seems to fix the problem.
That solution has been proposed here but for some reason it was not merged into codebase. I'm wondering why it wasn't good enough and if there is any alternative solution planned.
---------------------------------------------------------------------
"Never memorize what you can look up in books."
Albert Einstein
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users