Advertisement
bueddl

Untitled

Apr 14th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.  
  3.     namespace plugins\MY_PLUGIN;
  4.      
  5.     uses core\model\xmlrpc;
  6.      
  7.     class model2 extends xmlrpc_model
  8.     {
  9.      
  10.     }
  11.  
  12.  
  13. ?>
  14.  
  15.  
  16. // anderes file, z.B. der controller
  17.  
  18. <?php
  19.  
  20.  
  21.  
  22.     namespace plugins\MY_PLUGIN;
  23.      
  24.     uses core\controller\default;
  25.      
  26.     class mycontroller extends controller
  27.     {
  28.         function showServerInfo()
  29.         {
  30.              $view = new ServerInfoView();
  31.          $model = new model2();
  32.  
  33.              $view->assign('serverName', $model->getServerName() );
  34.              $view->assign('serverPlayers', $model->getPlayersCount() );
  35.              
  36.              $view->display();
  37.         }
  38.  
  39.     }
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement