OtherController.class.php 502 B

12345678910111213141516171819202122232425
  1. <?php
  2. if (!defined('IS_INITPHP')) exit('Access Denied!');
  3. class OtherController extends BaseController {
  4. public function IndexAction(){
  5. $this->display();
  6. }
  7. //调用基本接口
  8. public function BaseAction($funname) {
  9. $otherService = new OtherService();
  10. if(!C($funname)){
  11. call_user_func(array($_ENV["commonClass"],"urlErr"));
  12. }else{
  13. call_user_func(array($otherService,$funname),$funname,C($funname));
  14. }
  15. }
  16. public function TestAction() {
  17. echo 1;
  18. }
  19. }