问答详情
源自:7-2 微信SDK—多图文的代码实现

求解释为什么这样的继承不可以

IndexAction.class.php

<?php

class IndexAction extends Action {
    public function index(){
    $indeModel = new IndexModel;
    $indeModel -> res();
   }
}



IndexMode.php


<?php
class IndexModel{
    //回复多图文类型的微信消息
    public function res(){
        echo "hello";
    }
}

提问者:qq_T_T若是人间四月天_0 2017-04-13 20:20

个回答

  • qq_九哥_0
    2017-04-15 09:15:42
    已采纳

    看上去,这个model名称写错了,应该找不到父级model吧