jemmeli Posted August 11, 2013 Share Posted August 11, 2013 (edited) hello please who can explain me the following 2 variables $currentIndex and $this->identifier that I found them inside the file tabs/AdminTab.php but I did not understand what the role of those variables in this class . (note : i have prestashop 1.4) thank you in advance for the help Edited August 14, 2013 by jemmeli (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted August 11, 2013 Share Posted August 11, 2013 $currentindex keeps count of which tab page is currently selected let me check the other... 1 Link to comment Share on other sites More sharing options...
PascalVG Posted August 11, 2013 Share Posted August 11, 2013 OK: * @global string $currentIndex Current URL in order to keep current Tab As said, keeps track of currently selected tab. Identifier seems to be the type of page (i.e. database 'table') you are currently editing. Probably has contents of 'product', 'category', etc. Hope this helps, pascal 1 Link to comment Share on other sites More sharing options...
jemmeli Posted August 11, 2013 Author Share Posted August 11, 2013 Thank you pascalVG for the help , I think that those variable get used in the URL for the BO ! Link to comment Share on other sites More sharing options...
PascalVG Posted August 12, 2013 Share Posted August 12, 2013 Yes, I think that currentindex is used when you press the button 'save and stay', so that it knows WHERE to stay. Can we mark it as solved? pascal 1 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