12345678910111213141516171819202122232425 |
- <?php
- if (!defined('IS_INITPHP')) exit('Access Denied!');
-
- class OtherController extends BaseController {
-
- public function IndexAction(){
- $this->display();
- }
-
- //调用基本接口
- public function BaseAction($funname) {
- $otherService = new OtherService();
- if(!C($funname)){
- call_user_func(array($_ENV["commonClass"],"urlErr"));
- }else{
- call_user_func(array($otherService,$funname),$funname,C($funname));
- }
- }
- public function TestAction() {
- echo 1;
- }
-
- }
|