在模板里调用对象里的成员变量

浏览:858 发布日期:2018/03/12 分类:ThinkPHP5专区 关键字: 对象调用
想要调用这个对象最下面的shorttitle里面的成员变量值,要怎么搞大仙们?object(app\cms\model\Document)[55]
  protected 'table' => string '__CMS_DOCUMENT__' (length=16)
  protected 'autoWriteTimestamp' => boolean true
  protected 'connection' => 
    array (size=0)
      empty
  protected 'parent' => null
  protected 'query' => null
  protected 'name' => string 'Document' (length=8)
  protected 'class' => string 'app\cms\model\Document' (length=22)
  protected 'error' => null
  protected 'validate' => null
  protected 'pk' => null
  protected 'field' => 
    array (size=0)
      empty
  protected 'except' => 
    array (size=0)
      empty
  protected 'disuse' => 
    array (size=0)
      empty
  protected 'readonly' => 
    array (size=0)
      empty
  protected 'visible' => 
    array (size=0)
      empty
  protected 'hidden' => 
    array (size=0)
      empty
  protected 'append' => 
    array (size=0)
      empty
  protected 'data' => 
    array (size=26)
      'id' => int 104
      'cid' => int 5
      'model' => int 1
      'title' => string '的加基森地级市记得' (length=46)
      'shorttitle' => string '甲基四打击四的技术贾斯丁即使' (length=153)
最佳答案
评论() 相关
后面还有条评论,点击查看>>