Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace plugins\MY_PLUGIN;
- uses core\model\xmlrpc;
- class model2 extends xmlrpc_model
- {
- }
- ?>
- // anderes file, z.B. der controller
- <?php
- namespace plugins\MY_PLUGIN;
- uses core\controller\default;
- class mycontroller extends controller
- {
- function showServerInfo()
- {
- $view = new ServerInfoView();
- $model = new model2();
- $view->assign('serverName', $model->getServerName() );
- $view->assign('serverPlayers', $model->getPlayersCount() );
- $view->display();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement