Dharani Posted March 6, 2010 Share Posted March 6, 2010 What should i need to do for creating my own new tab in BO .Plz tell me the steps else atleast tell the requirements to doThanks in Advance Link to comment Share on other sites More sharing options...
rocky Posted March 7, 2010 Share Posted March 7, 2010 Since I don't know whether you want to do a tab with a table or a tab with text fields, I can only give you general advice. Create a file in admin/tabs called AdminYourTab.php. Change YourTab to an appropriate name for the tab. Just look at existing tabs and copy how they are done. Here's a template for what to put in the file: <?php include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminYourTab.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 } } ?> Once you've created a file for the tab, you can go to Tools > Tabs and add the tab. Enter the Name as what you want displayed on the tab, enter AdminYourTab under Class, choose an icon for your tab, and choose the Parent. If you select "Home", it will become a big tab at the top. If you select another tab like "Catalog", your tab will appear as a subtab of that tab. Link to comment Share on other sites More sharing options...
Dharani Posted March 8, 2010 Author Share Posted March 8, 2010 Hi Rocky,Thanks for your helpJust look at the below attached files I just edited the admin employees file to get my new tab in BOEverything is fine in that Tab but the values that i entered in the fields are not storing in my database tablePlz Help..... AdminMIPlans.php plan.php dbtable.txt Link to comment Share on other sites More sharing options...
Dharani Posted March 10, 2010 Author Share Posted March 10, 2010 Hey rocky still didnt got the solution Did You tried My attachments Link to comment Share on other sites More sharing options...
rocky Posted March 10, 2010 Share Posted March 10, 2010 Sorry, I've been too busy to have a good look at your code. If no-one else comes up with a solution, I'll take a look when I'm not as busy. Link to comment Share on other sites More sharing options...
jose carlos Posted October 30, 2012 Share Posted October 30, 2012 very good, And as I do for version 1.5 =>, and it took a long time with this and I can not. thanks Link to comment Share on other sites More sharing options...
Recommended Posts