|
Steps :
Take a look through the codes and see that what it basically does is protect your page so only the admin with the correct access can view and make any changes. This is very important. Create your blank module page with all the codes from the above picture. We are now going to create our first function. I will not go into details about functions, there will be another tutorial on that. I will create a simple function just to let you see how it's used. You might think I forgot about the case.name_of_your_module.php but you will now see how it works hand in hand with this current module. Remember the name I told you to remember earlier ( newpagemain)? Well this will be the name of our function. Functions are similiar to bookmarks in html except you only see and use them when you call for them in the script. The following pic will show you how our function is created to show the word ( testing ) when the page is viewed.
We are almost done. I have commented those pictures so you can see how i created the function. It should be easy to figure out. You can create as many functions as you want. Make sure your functions have different name than not only the other functions in your page but also any page in the other nuke modules. The last thing is to setup the admin/case/case.name_of_your_new_module.php . This page is basically a collection of all the cases in your page. Look close to the bottom of the above picture you will see case "newpagemain": . You will need to put all of them in the one case php page like the following picture.
Save all your files and click the link in the admin panel and see your new page which should show the word "testing". You can go much further with your admin page creation by adding tables, forms and so on.. That's it. If you need more help please visit the forums.
|