Adding new modules to phpVMS is pretty easy if you know how to do it.
In this quick tutorial you’ll learn how to create a new about us page for your website without using the admin center for page creation.
For this module we will create the following 2 files:
Lets start with the module file (AboutUs.php).
Create a php file, name it AboutUs.php and add the following:
With this finished we now create a second file called aboutus.tpl:
That`s it! Now the only thing we need to do is to upload it to the correct directories. You need to put the AboutUs.php file inside a folder named “AboutUs” and upload it to the modules directory. The aboutus.tpl file goes directly into your templates folder. (Note that the module is case sensitive.):
To finish this tutorial create a link in your navigation menu (by default core_navigation.tpl):
<a href="<?php echo url('/aboutus'); ?>" >About Us</a>
That was pretty easy, wasn`t it? If you have any questions please comment below.