Jump to content

Add a new page in admin


kesaven

Recommended Posts

Hello

 

I am trying to add a new page in admin but with no success:

Here are my prestashop details:

 

Version: 1.4.8.2

 

I copied an existing admin tab and added the following code:

 

<?php

include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');

class GestionDates.php extends AdminTab
{
public function __construct()
{
// Initialise the tab by linking it to a database table and setting its default permissions

parent::__construct();
}

public function postProcess()
{
// This function is executed when the Submit button is clicked
// Use it to store the value of text fields in the database

parent::postProcess();
}

public function displayForm($token=NULL)
{
// This function can be used to create a form with text fields
echo '<span>Test Span</span>';
echo 'sadadasdasdasd';
}

public function display()
{
// This function can be used to create a form with text fields
echo '<span>Test Span</span>';
echo 'sadadasdasdasd';
}

}
?>
 

However I still have a blank page

Can anyone help me out please

 

Thanks in advance

Kesaven

 

 Mautech Consulting Ltd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...