自己在MODEL中自己定义了方法findIndex()
public function findIndex()
{
return $this->join('ty_lytype ON ty_ly.typeId=ty_lytype.typeId')->select();
}$ly=new LyModel();
$date=$ly->findIndex();print_r($date);可以显示结果为
Array ( [0] => Array ( 
[lyId] => 2 
[lyName] => 周杰伦 
[lyTitle] => 大家好啊 
[lyText] => 哀伤的房间阿隆索的附件 
[lyDate] => 2012-10-22 
[typeId] => 4 
[result] => 4 
[type] => 其他 
[typeRe] =>4 
 ) ) 但不管是
    echo $date['lyId'] 
    echo $date[lyId]
    echo $date["lyId"]却都没有显示结果怎么回事呢?
40分