926
技术社区[云栖]
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