Aptana Studio 3 terminates / does not support code for Yii Framework

I just started development with Aptana Studio 3 and Yiiframework. Since Aptana Studio 3 already supports code completion for PHP, and Yiiframework fixes the use of comments and return types of PHPDoc, I assumed that the call

$app = Yii::app();
$app->...

content support should appear using class methods and fields CApplication. But I only see a blank popup containing "No offer." The same thing happens when directly accessing the application object using

Yii::app()-> // empty code assist window

When I declare a variable type $appexplicitly, the code hint appears correctly:

/**
 * @var CApplication
 */
$app = Yii::app();
$app-> // code assist pops up with correct content

I did not include yiilite.php - this file is removed from my framework directory. Code assistance works, but not as expected.

? - Aptana Studio 3? ?

,

+1
7

" " () PHP. Project- > properties- > Project Natures

+4

, .

+2

, , YII.

, :

  • PHP- ( : Configure → PHP)
  • YII , .

PHP → → → 'framework' YII unzipped

, № 5 Arek Eclipse PHP.

+1

, , :

  • .
  • PDT Aptana "- > "
  • Restart Aptana Studio
  • . "", "org.eclipse.php.core.PHPNature" .
  • "PHP" , "org.eclipse..." .

, ..

orginial aptana "PHP" .

"org.eclipse.php.core.PHPNature" .

EDIT: PDT Aptana, PHP

0

http://firas-vision.com/aptana-yii-2/

, , , com.aptana.editor.php.jar

Aptana git, ,

0
  • tar yii, .
  • , Yii, ""
  • The project properties dialog box will be displayed, a tree will appear in the right part of the dialog box, in which the child element marked as "PHP Buildpath" will be selected, on the right click "Add" and add the "Frame Directory" as part of the build path
  • Apply changes and click OK to make changes. Now try creating a class that extends any of the Yii kernel classes that should auto-complete successfully.

Enjoy

0
source

All Articles