Jump to content

$val_self help


ics1010

Recommended Posts

Hi,

 

While doing some modification I changed something so now I wind up with an incorrect $val_self value.

I didn't change any of the cubecart code, only code in my plug.

 

I did a search on the site and can't find where this value is set. Can someone point me to where it is initialized?

 

Thanks!

 

Link to comment
Share on other sites

Welcome ics1010! Glad to see you made it to the forums.

 

VAL_SELF is most generally set at around line 204 in the file gui.class.php (for the storefront). Its value comes from a function called currentPage(). The result of currentPage is, obviously, the page you are on right now.

 

But VAL_SELF can be assigned just about anywhere.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...