求大神解釋為什么這樣的繼承不可以
IndexAction.class.php
<?php
class IndexAction extends Action {
??? public function index(){
?? ?$indeModel = new IndexModel;
?? ?$indeModel -> res();
?? }
}
IndexMode.php
<?php
class IndexModel{
?? ?//回復(fù)多圖文類型的微信消息
?? ?public function res(){
?? ??? ?echo "hello";
?? ?}
}