Jump to content

Custom page within a module


CubedHost

Recommended Posts

Hey there.

 

I've been following the Module documentation for how to create custom pages with absolutely no luck.

What I'm trying to accomplish is to setup an extra page that displays within the client product details page.

Here's an example of my current form for any action:

<form action='/billing/clientarea.php?action=productdetails' method='POST'>
<input type='hidden' name='id' value='113'>
<input type='hidden' name='modop' value='custom'>
<input type='hidden' name='a' value='ipv6'>
<input type='image' src='/ovh/rdns_ipv6.gif'>
</form>

Obviously the form is autogenerated by a custom function that fills in the necessary values.

 

Within my modules/servers/ovh/ovh.php file:

function ovh_ipv6($params)
{
       $pagearray = array(
               'templatefile' => 'ipv6',
               'breadcrumb' => ' > <a href="#">Reverse DNS Management (IPv6)</a>',
               'vars' => array(
               ),
       );

       return $pagearray;
}

 

Assuming that all of the above is correct, the template should be called from modules/servers/ovh/ipv6.tpl, which simply contains:

Imma IPv6 reverse DNS management page. Sup.

 

It doesn't even make an attempt at viewing that template file from what I can tell.

Am I doing something wrong, even ever so slightly?

 

Regards,

Bill Ewing

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated