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

来源:7-2 微信SDK—多图文的代码实现

qq_T_T若是人间四月天_0

2017-04-13 20:20

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";
    }
}

写回答 关注

1回答

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

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

    qq_T_T...

    非常感谢!

    2017-04-16 18:05:09

    共 2 条回复 >

PHP实现微信公众平台开发—提升篇

本课程详细讲解了接收微信用户发送的消息和接收订阅关注的事件推送

64948 学习 · 371 问题

查看课程

相似问题