zend studio代碼自動提示問題,有的提示正常有的提示不正常,解決方法
經過試驗此類問題都是有備注中@reuturn 類名 有關
@return PositionData the static model class
加入這個類名後,代碼自動提示即可正常
案例:
class PositionData extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return PositionData the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
return '{{1_position_data}}';
}
}
最後更新:2017-04-04 07:03:44