Jump to content

[SOLVED]who can explain me what does $currentIndex and $this->identifier variables


jemmeli
 Share

Recommended Posts

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 by jemmeli (see edit history)

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More