IndexController.class.php 394 B

12345678910111213141516171819202122
  1. <?php
  2. class IndexController extends BaseController {
  3. public function IndexAction(){
  4. $this->display();
  5. }
  6. //调用基本接口
  7. public function BaseAction($funname) {
  8. $apiService = new ApiService();
  9. if(!C($funname)){
  10. call_user_func(array($_ENV["commonClass"],"urlErr"));
  11. }else{
  12. call_user_func(array($apiService,"ApiEngine"),$funname,C($funname));
  13. }
  14. }
  15. }