Hi Team, I write plug-in and put it in a local directory.it's not display anything on a mobile app. this is my code in local/example/db/mobile.php. I want it to display like this ![]() -github I get stuck with this for a week |
My plug-in is not display in Moodle mobile
Number of replies: 5Re: My plug-in is not display in Moodle mobile
Is that all of the code, or have you left parts out? You'll need a classes/output/mobile.php function that defines a mobile
class with a mobile_test_view
method for it to work.
Do you see any errors in the javascript console when you load the app? (Press Ctrl+Shift+I) to open dev tools.
ตอบ: Re: My plug-in is not display in Moodle mobile
Yes this is all of my code.In document workflow it told me to creating a simple mobile.php for displaying a new main menu option first and Check that you can correctly see the new menu option you included.but it not show menu in more menu. I will write a classes/output/mobile.php according to your advice.
ตอบ: Re: My plug-in is not display in Moodle mobile
I also config certificate then make it CoreMainMenuDelegate and it is not shown on more menu too.
https://github.com/ozaza123456789/certificate
https://github.com/ozaza123456789/certificate
Re: ตอบ: Re: My plug-in is not display in Moodle mobile
I just spotted that your db/mobile.php file has the following first line:
<? php
There should be no space between the <?
and the php
. It's possible that this is causing the file to be interpreted incorrectly.
In your certificate example there is no opening PHP tag at all, so that definitely wont work.
Re: ตอบ: Re: My plug-in is not display in Moodle mobile
Yes Mark Your Correct,
@Mark, Auychai: can i have any one working local plugin for mobile.
After click on new menu link it's giving error, i need working local example plugin for display in mobile.
@Mark, Auychai: can i have any one working local plugin for mobile.
After click on new menu link it's giving error, i need working local example plugin for display in mobile.
@Auychai Thanks for sharing your example code, can you please give full working example.
Can you please help on this Thanks.
Can you please help on this Thanks.
