S
S
skijaev2014-09-16 19:00:11
Yii
skijaev, 2014-09-16 19:00:11

Netbins does not show class properties. Maybe I'm describing the class incorrectly?

I installed a new version of netbins (after reinstalling Windows) and now I see a jamb in old Yii projects - when I write the first letters of the model name in the code, a hint pops up with the names of suitable model classes. When selected in the list, another window pops up with the properties of the model class. So in the new version, these properties are not complete.
Models are generated for Yii using gii.
Get a model like this

<?php
/**
 * This is the model class for table "companies".
 *
 * The followings are the available columns in table 'companies':
 * @property integer $id
 * @property integer $user_id
 * @property string $title
 * @property integer $country_id
 * @property integer $region_id
....

class Company extends CActiveRecord
{    
....

Maybe now it is necessary to describe properties differently instead of * @property string $title ?
Or is it a cant of netbins?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dmitriy, 2014-09-17
@dmitriylanets

/**
 * Класс такой то
 *
 * 
 * @author Diamon
 */
class Company {

  /**
   * переменная
   * 
   * @var type 
   */
  private $name;
}

and if so?

S
skijaev, 2014-09-18
@skijaev

naneri
    /**
    *
    * @param type $steamID
    * @return boolean
    */

This works, but you have to edit all classes. Netbins can not be configured in any way to understand the old way?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question