pear2007

pear2007

这家伙有点懒,还没写个性签名!

  • 财富值4995
  • 威望值70
  • 总积分6705

个人信息

  • 改好后效果

      <div id="bigtList" class="list-view">      
      <a href="/index.php?r=big%2Fview&id=1">行业新闻</a>     
      <a href="/index.php?r=big%2Fview&id=2">公司新闻</a>      
      <a href="/index.php?r=big%2Fview&id=3">国际新闻1</a>    
      <a href="/index.php?r=big%2Fview&id=4">科技新闻</a>     
    </div>
    
  • 方面 没研究明白 只好从新 改了下
    新建了 ListViewli.php 在 ListView目录

    <?php
     
    
    namespace yii\widgets;
    
    use Yii;
    use yii\helpers\ArrayHelper;
    use yii\helpers\Html;
    
     
    class ListViewli extends  ListView
    {
         /**
         * Renders a single data model.
         * @param mixed $model the data model to be rendered
         * @param mixed $key the key value associated with the data model
         * @param integer $index the zero-based index of the data model in the model array returned by [[dataProvider]].
         * @return string the rendering result
         */
        public function renderItem($model, $key, $index)
    //    public function renderItem($model  )                              //  alen  zhange  2015年11月18日12:17:42
        {
            if ($this->itemView === null) {
                $content = $key;
            } elseif (is_string($this->itemView)) {
                $content = $this->getView()->render($this->itemView, array_merge([
                    'model' => $model,
                    'key' => $key,
                    'index' => $index,
                    
                    'widget' => $this,
                ], $this->viewParams));
            } else {
                $content = call_user_func($this->itemView, $model, $key, $index, $this);
            }
            $options = $this->itemOptions;
     
            $tag = ArrayHelper::remove($options, 'tag', 'li');
    
     
                return $content;
                
    //        }
        }
    }
    
    
  • 2015-11-18 已签到
    连续签到5天,获得了20个金钱
  • 2015-11-17 已签到
    连续签到4天,获得了20个金钱
  • 收藏了教程
    yii2 程序打包备份
  • 2015-11-16 已签到
    连续签到3天,获得了15个金钱
  • 2015-11-15 已签到
    连续签到2天,获得了10个金钱
  • 已经没必要让他显示在最下面了 因为 有了 Debuger 我想要看到的sql 的 功能已解决

  • 2015-11-14 已签到
    连续签到1天,获得了5个金钱
副总裁 等级规则
6705/10000
资料完整度
20/100
用户活跃度
0/100

Ta的关注

11

Ta的粉丝

13

Ta的访客

52