kesaven Posted March 17, 2014 Share Posted March 17, 2014 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: <?phpinclude_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 permissionsparent::__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 databaseparent::postProcess();}public function displayForm($token=NULL){// This function can be used to create a form with text fieldsecho '<span>Test Span</span>';echo 'sadadasdasdasd';}public function display(){// This function can be used to create a form with text fieldsecho '<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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now