NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Custom Page (PHP) in V2 with Module
Started by eay

eay

eay

Member
Joined
02 Nov 2018
Last Seen
05 May 2022
Topics
1
Posts
3
Hello,

I have a little problem, I didnt know how Modules work with v2 Namelessmc. I need help for this. 

https://pastebin.com/1Avv5Mw3 // module/CustomPage/pages/pravidla.php
https://pastebin.com/ziUFsEP6 // template/Default/pravidla.tpl
https://pastebin.com/BWqRcRf5 // module/CustomPage/init.php

It always return the 404 Page.

Thanks for any answer.
 
eay · over 6 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
23 Dec 2024
Topics
41
Posts
1076
Hi,

The $pages->add() method must have the module name as the first parameter; in your case this would be CustomPage.

Hope that helps :)
x1
Samerton · over 6 years ago
eay

eay

Member
Joined
02 Nov 2018
Last Seen
05 May 2022
Topics
1
Posts
3
Thank you, you should be put this things on your wiki page. It will be helpfull for other "developer" or players.
eay · over 6 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
23 Dec 2024
Topics
41
Posts
1076
Absolutely, once version 2 is released there will be developer documentation available :)
Samerton · over 6 years ago
eay

eay

Member
Joined
02 Nov 2018
Last Seen
05 May 2022
Topics
1
Posts
3
okay, and you know when will be full version 2.
Will be these year or not ? I know its hard code two version of Nameless but I am fan and interested into this project. Its amazing how you can create comunity who helps develop to you.
eay · over 6 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
23 Dec 2024
Topics
41
Posts
1076
I'm really not sure if it will be this year unfortunately, there is still a lot to do and only less than 2 months until 2019.
Samerton · over 6 years ago