Hello everyone, here is a tutorial that lets you know the creation of primordial file is mandatory to create mod is new page on 2moons
To start you must create the php file in includes / pages / game like this (v1.8 to 2.0)
Name : ShowNamePage.class.php
Display All
Once the php page create we have to do the file to make the view to the user
link : styles/templates/game/
name : page.name.default.tpl
Here you know all about the required file to create new page is start creating mod
To start you must create the php file in includes / pages / game like this (v1.8 to 2.0)
Name : ShowNamePage.class.php
PHP Source Code
- <?php
- class ShowNamePage extends AbstractGamePage
- {
- public static $requireModule = 0;
- function __construct()
- {
- parent::__construct();
- }
- function show()
- {
- global $USER, $LNG, $PLANET;
- $db = Database::get();
- $config = Config::get();
- $this->assign(array(
- ));
- $this->display('page.name.default.tpl');
- }
- }
link : styles/templates/game/
name : page.name.default.tpl
Here you know all about the required file to create new page is start creating mod
You can contact me by Discord or Telegram
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside
Discord Galactic Conquest
Video Youtube dev + tutorials
Webside